ScriptSpot

Script

Transformer

By grover_gol · 2014-04-01

Version
1.2
Date updated
2015-04-08
Votes
3
Download
Download
Description

Transformer is a tool for fast manipulating main properties of an objects and renderer. Works fine with vray and corona renderer.

Comments (5)

fn TRfunc operationSNP = (

fajar · 2014-04-01


fn TRfunc operationSNP =
(
      for obj in selection do
      (
	case operationSNP.name of
            (
            "spnMX": ...
            "spnMY": ....
            )
	)
)

-- paste mat hmmm little bit problem....

--- if ((vr as string) == "CoronaRenderer:CoronaRenderer"), what if corona change their renderer ....like CoronaRenderer:CoronaRenderer_3 ?

-- on spn_ResutionW buttondown do
(
closeRndDialog()
Asp = GetRendImageAspect()
)
why must close the render dialog?

.

miauu · 2014-04-01

If Corona changed their renderer the autohr will change the code. :)
One of the solution is to use:


matchPattern (vr as string) pattern:"*corona*"

but what if Corona change their renderer to something that don't have "corona" in its name. :)

.

miauu · 2014-04-01

All functions that is defiend before the rolout are in global scope which is not right. Their names are not unique, so, eventualy, they can affect another script and will ruin yours as well. Put the code inside selection brackets to avoid such a problem.
Why the Redresh button is so small? The "refresh" string is cutted?

:)

All functions...

grover_gol · 2014-04-01

I tried to make script as compact as it possible, not to take much space from outliner, which is usually below. Brackets added.

.

miauu · 2014-04-01

The script can be 200 000 lines. This is not a problem. :) When you can avoid using the global variables - don't use them. When you have to use them - give them a unique name, something like GroveR_GoL_StartTransforms :)