Notifications
Clear all
[Closed] Modifier strangeness
Sep 07, 2009 11: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)
2 Replies
Sep 07, 2009 11:23 pm
the code that you sent is absolutely correct and it has to work. Double check you modifier variable with:
[left]Custom_Mod = Twist()[/left]
[left]format "modi: %
" Custom_Mod[/left]
Sep 07, 2009 11:23 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…