I was able to get back to it last night... and I made the toggle. This will toggle the turbosmooths in a selection on or offfor i in $ do if isproperty i #turbosmooth == true do if i.modifiers[#turbosmooth].enabled == on then i.modifiers[#turbosmooth].enabled = off else i.modifiers[#turbosmooth].enabled = on The script…
Using $ does return undefined if you have nothing selected. However as long as there is at least 1 object in your selection when you use $ it doesn't give you an error as you still have something to apply the functions to. Nice to know that when you use "selection" it will run the script anyways. Thanks for that! :D…
Thanks A-N-P! :D So I sorta took upon myself to make a script to speed my friend up. It was originally going to be a turbosmooth toggle but it expanded from there. Here was what my early tests were just to figure out some of the properties and functions. This one turns the turbosmooth modifier off.macroScript…
Nice to see another maxscript user :) Just a few notes if you don't mind: 1. You can drop the == true test everywhere, (true == true returns true anyway so there's no point in doing that; you've already done that in one case, see #ctrl_shift_alt: section) and as LoTekK already mentioned, for loops with single if branch can…