Thanks for posting that example Monster! I didn't know you could store the results of a 'case of' expression into a variable. I've just used them to execute code in my scripts. And of course now that I go back and check the documentation for the case expression it clearly shows it being used that way in their example...
Sorry, quick question; from the above example which one do you guys prefer to write from bellow option and why? case subLevel of( 1: case curMod of ( baseMod: -- content editMod: -- content ) 2: case curMod of ( baseMod: -- content editMod: -- content ) 3: case curMod of ( baseMod: -- content editMod: -- content )) OR case…
I actually commented on the built in methods so that you might research the maxscript behind them. My first step in creating any tool is to see if it already exists. For example. the two scripts below are shorter and avoid extra global variables. ( if selection.count == 1 do ( subLevel = case subobjectlevel of ( 1: 1 2: 2…
Oh wow! that's an interesting approach with the 'case of' stuff. Yeah I notice the script that I wrote most of the time are duplicating within the script itself just because Editable Poly and Edit Poly are slightly different in maxscript. Looking at your example I will be able to do it like bellow I suppose; macroScript…