Add a modifier to any object and change its parameter

Hi,

Thanks in advance for your time.

Could I ask how I can make a script that allows me to add an UVW map modifier to any object and have the Box type and Real World Map size turned on.

Similarly, I need to add Shell modifier to any object and have both inner and outer amount to 0.005.

Thank you very much.

Richard,

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brttd's picture

Check the maxscript

Check the maxscript documentation:
docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/

obj = $
addModifier obj (uvwMap())
obj.uvwMap.mapType = 4
obj.uvwMap.realWorldMapSize = true
 
addmodifier obj (shell())
obj.shell.innerAmount = 0.005
obj.shell.outerAmount = 0.005

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.