Transformer

3 votes
Version: 
1.2
Date Updated: 
04/08/2015
Author Name: 
grover_gol

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

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

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. :)

fajar's picture

fn TRfunc operationSNP = (

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's picture

.

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 :)

grover_gol's picture

All functions...

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

miauu's picture

.

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?

:)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.