( -- save SO selection into memory global vert_savedSelectionBA global edge_savedSelectionBA global face_savedSelectionBA if (selection.count == 1) then ( case (classOf $.modifiers[1]) of ( undefinedClass: ( global base_obj = $.baseobject case subobjectlevel of ( 1: ( vert_savedSelectionBA = polyOp.getVertSelection…
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…
@miauu - awesome! thanks so much for helping me on writing this script, you know that my previous iteration of code somehow didn't work anymore, I no idea why -_-" but your edited version works very smooth! :) Hmmmm...about the array #{}, so you mean that max can only save 1 array? why does the vert_savedSelection array…
There's nothing wrong with either of those methods from what I can see. They do the same thing so its what ever you prefer. Now as far as the actual code you're writing and what you're trying to accomplish? That can be improved upon but it of course takes time and experience. I'm still learning everyday. I'm sure this code…
Revel: I would suggest going through the help file tutorials, they are good at explaining the basics of scope and local/global variables. If you want to use globals then try to give them a more personal variable name to prevent other scripts from overriding them. What if you installed another script that used xCurMod?…