ScriptSpot

Forum topic · General Scripting

Add a modifier to any object and change its parameter

By richardminhle · 2014-10-17

Description

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 (1)

brttd · 2014-10-20

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