View Full Version : Quick Question: Add modifier with MAXScript?
Patan77 02-13-2012, 04:22 PM Hi how do I add and remove a modifier with maxscript?
Let't say I have a box ($Box017) and I want to add an Bend modifier to it then also later I want to remove the same modifier, how do I do that?
thanks in advance:)
|
|
michaelkiss
02-13-2012, 05:45 PM
Hi Patan77,
you could try this:
myBend = Bend()
modpanel.addmodtoselection myBend --adds the bend modifier to the top op the stack
/*
addmodifier $Box017 myBend --this will also work
*/
deleteModifier $Box017 1 --if the modifier is the first in the stack
Cheers,
Patan77
02-13-2012, 05:56 PM
Hi Patan77,
you could try this:
myBend = Bend()
modpanel.addmodtoselection myBend --adds the bend modifier to the top op the stack
/*
addmodifier $Box017 myBend --this will also work
*/
deleteModifier $Box017 1 --if the modifier is the first in the stack
Cheers,
Works like a charm, thank you :)
CGTalk Moderation
02-13-2012, 05:56 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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.