ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
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 :)
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?
Comments
.
If Corona changed their renderer the autohr will change the code. :)
One of the solution is to use:
but what if Corona change their renderer to something that don't have "corona" in its name. :)
Tools and Scripts for Autodesk 3dsMax
fn TRfunc operationSNP = (
-- 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?
.
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 :)
Tools and Scripts for Autodesk 3dsMax
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.
.
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?
:)
Tools and Scripts for Autodesk 3dsMax