Like others above, our studio-wide library-type script files are deployed into <maxdir>\stdplugs\stdscripts. That’s the first script folder eval…
Cool. In your script, instead of “obj.pos as string”, use “(obj.pos * 2.54) as string” to export in centimeters.
What script/plugin are you using to export? It’s really up to the exporter code to determine what units it uses. It’s not unusual for them to use na…
Okay. Sounds like you don’t need two loops at all. By using the selection count as the index, you can multiply that by dist each time through the loop…
Is this what you want? This is usually referred to as nested loops. For every iteration of i, a full 0-10 loop of o is run. ( –Variables …
I don’t believe so. Why can’t you use the snapshot command? newObj = snapshot oldObj newObj.name = oldObj.name delete oldObj
Regarding the first question, you can turn an array of strings into variable names like this: for varName in theArray do ( execute (varName + ” …
You can also use suspendEditing() and resumeEditing() to disable/enable all command panels without switching from the current one. If your script bom…
Make sure your event handler is inside the scope of the rollout. If you mistakenly put it outside the rollout, it won’t complain but also won’t work. …
Since those spinner controls will only be available when that single object is selected, it’s safe to do it this way: centerPivot selection[1] or c…
Sounds like a bug or “feature” in the Panda exporter. You could follow that export command with a copyFile then a deleteFile to relocate the texture. …
That would return a list of UVW Map modifiers on the object, but wouldn’t really tell you how many UV channels it had. Say you applied a UVW Map modif…
The createDialog command has the option to be set as “modal:true”. This halts execution (aside from events in the dialog itself) until the dialog is d…
If you want it to execute another script when a button is pressed, use a fileIn statement, like so: on myButton1 pressed do ( fileIn “c:\\3dsmax7…
In regular Max materials, the maps are each stored as a Bitmap value. As you probably know, that Bitmap value has a .filename parameter. Example, typi…