Sunday, June 12, 2011

More maxscript goodies

Need a turbosmooth modifier on all your SELECTED objects?, then try this.
 -- for every item you have selected do the following
for i in selection do
-- add a turbosmooth modifier to every selected item
addModifier i (TurboSmooth ()) ui:on 

The -- "Double dashes mean whatever is next is just a comment
not a part of the script to be run" i usually stands for index but
you could have used anything, j or k etc

If you want to set the turbosmooth iterations to 2 and the render
iterations to 4 then you'd need to change (TurboSmooth ()) to
(turbosmooth iterations:2 useRenderIterations:true renderiterations:4)

No comments:

Post a Comment