Notifications
Clear all

[Closed] Quick Question: Add modifier with MAXScript?

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:)

2 Replies

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,

1 Reply
(@patan77)
Joined: 11 months ago

Posts: 0

Works like a charm, thank you