magicm
@magicm
New Member
Joined: Feb 14, 2024
Topics: 8 / Replies: 546
Reply
RE: get verts/edges of editable patch

It’s been a while since I’ve used patches, but from the looks of it there’s no way to get a patch’s vertices (in the correct order) in maxscript…

14 years ago
Forum
Reply
RE: Maxscript : How to switch off output to Listener?

MAXScript always returns the result of an expression after hitting the numeric enter-key or when executing a script. When you create a local scope (p…

14 years ago
Forum
Reply
RE: Strange macroscript issue

I think you’re getting the error because the objSet struct does not exist in the global scope. Declaring it as a global right before the definition sh…

15 years ago
Forum
Reply
RE: error using function the second time in for loop

I’m guessing you’ve used Visual Basic before, where this is how you have a function return a value. In maxscript it works a little different though. …

15 years ago
Forum
Reply
RE: 'Attaching' trimeshes ?

Correct, you can use snapShotAsMesh to get a node’s world state mesh (the resulting mesh is a copy). If, after using this method, you no longer need t…

15 years ago
Forum
Reply
RE: get access to a spline with modifiers on top

You should be able to use the getPointPos method for this (max 2008 or higher), which works for both meshes as shapes. In the case of shapes it actual…

15 years ago
Forum
Reply
RE: Why the uvw_mapping length(width) is not equal the box length(width)?

This also happens when you manually assign a uvw modifier to an object. It has been like this since Max 1 and possibly even before that. Adding 1/1000…

15 years ago
Forum
Reply
RE: Error: "No outer local variable references permitted here", when construct

I obviously didn’t read your initial post properly so I missed the fact that you’re assigning a struct to variable ni and want to use that in your cal…

15 years ago
Forum
Reply
RE: Error: "No outer local variable references permitted here", when construct

Instead of sr try using the object parameter ni. handler = when transform sr changes handleAt:#redrawViews [b]ni[/b] do ( local p0 = getKnotPoint [b…

15 years ago
Forum
Reply
RE: Pivot to normal

Here’s the thread containing the above snippet:

15 years ago
Forum
Reply
RE: node.wirecolor on camera don't work

You can get/set the default camera wirecolor using GetUIColor <index_integer> and SetUIColor <index_integer> <point3>: GetUIColor 3…

15 years ago
Forum
Reply
RE: Set material ID to 1

When using the addModifier command, any subobject selections will be discarded anyway. modPanel.addModToSelection keeps it. Martijn

15 years ago
Forum
Reply
RE: For and If together in rotation controller

Rotation_List is a class and the actual controller applied to the object is an instance of that class. To find out what class a controller belongs to,…

15 years ago
Forum
Reply
RE: Select objects by variable name

Of course it’s faster, but you can’t deny that using regex searches makes the code look a lot more sophisticated.

15 years ago
Forum
Reply
RE: Select objects by variable name

… or local objs = objects as array local objNames = for obj in objs collect obj.name local objCount = objs.count q = 3 for i = 1 to q do ( waveName…

15 years ago
Forum
Page 2 / 37