Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add own modifier to the stack

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
173 Views, 3 Replies

Add own modifier to the stack

Hi,

I want to add my own modifier-plugin by the function addModToSelection. How can I access this modifier? I tried it with the classID, but it doesn't work:

modPanel.addModToSelection(#(775373310, 309340855))
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

The same way as you do this with others modifiers. Take Bend for example:
modPanel.addModToSelection (bend())

i.e. call the constructor using the name of your modifier.
modPanel.addModToSelection (YourModName())
Message 3 of 4
Anonymous
in reply to: Anonymous

Thanks, that works.

Is it also possible to "click" (scripted) on a button in a self-made utility plugin?
Message 4 of 4
Anonymous
in reply to: Anonymous

sure
utility utTest "Test"
(
button btnOK "OK"

on btnOK pressed do (messageBox "Hi!")
)

max utility mode
openUtility utTest
utTest.btnOK.pressed()

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report