PDA

View Full Version : Modifier strangeness


Piflik
09-07-2009, 10:23 PM
I try to assign instanced Modifiers on a selection of objects, but I have no luck with that seemingly easy task. I use the following code, that is nearly an exact copy from the MXS User Reference. Still it gives a error: Custom_Mod: undefiened; Unable to convert: undefined to type: Modifier

Here's the code:
Custom_Mod = Twist()
for o in selection do addmodifier o Custom_Mod

I also tried a variation of the code with the same result:
Custom_Mod = $Cylinder01.twist
for o in selection do addmodifier o Custom_Mod

I really don't know whats happening there...

(tried in Max2008 and Max2010...same on both)

denisT
09-07-2009, 10:33 PM
the code that you sent is absolutely correct and it has to work. Double check you modifier variable with:

Custom_Mod = Twist()
format "modi: %\n" Custom_Mod

Piflik
09-07-2009, 11:40 PM
Ok...this is more than strange...now it works fine...I'm sure I didn't do anything else before...I think Max hates me sometimes...

CGTalk Moderation
09-07-2009, 11:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.