vScourge
@vscourge
New Member
Joined: Feb 14, 2024
Topics: 2 / Replies: 59
Reply
RE: Best practice: Code libraries | Structs

Like others above, our studio-wide library-type script files are deployed into <maxdir>\stdplugs\stdscripts. That’s the first script folder eval…

17 years ago
Forum
Reply
RE: [MaxScript] Getting Object info on Selection

Cool. In your script, instead of “obj.pos as string”, use “(obj.pos * 2.54) as string” to export in centimeters.

17 years ago
Forum
Reply
RE: [MaxScript] Getting Object info on Selection

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…

17 years ago
Forum
Reply
RE: Two Loops simultaneously

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…

17 years ago
Forum
Reply
RE: Two Loops simultaneously

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 …

17 years ago
Forum
Reply
RE: Collapsing the stack

I don’t believe so. Why can’t you use the snapshot command? newObj = snapshot oldObj newObj.name = oldObj.name delete oldObj

17 years ago
Forum
Reply
RE: How to define variable based on an array?

Regarding the first question, you can turn an array of strings into variable names like this: for varName in theArray do ( execute (varName + ” …

17 years ago
Forum
Reply
RE: command panel refreshing

You can also use suspendEditing() and resumeEditing() to disable/enable all command panels without switching from the current one. If your script bom…

17 years ago
Forum
Reply
RE: Scripted Plug-in question

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. …

17 years ago
Forum
Reply
RE: CenterPivot in a plugin

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…

19 years ago
Forum
Reply
RE: Exporting file whose the filename is the mesh's name

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. …

19 years ago
Forum
Reply
RE: getting the amount of UVW channels

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…

19 years ago
Forum
Reply
RE: a program flow issue…

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…

19 years ago
Forum
Reply
RE: How does it open another script by help button?

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…

19 years ago
Forum
Reply
RE: Replacing Bitmaps with Similar Filenames

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…

20 years ago
Forum
Page 4 / 5