Inspired from this thread and the problems that default Named Selection Sets and Storage Selections have(preserving the proper selection after some operations) I've created a script that can save and load sub-objects selections with no problems. Video of the script.
This functionality already exists in 3DS Max. 1. With sub objects selected just type a name into the Selection Sets drop down. Then to retrieve a selection just use the drop down list. You can modify stored sub object selections by pressing the button next to the drop down. 2. In the ribbon the Stored Selections Panel. Is…
Revel: Miauu is saying that you are resetting the global values to empty bitarrays every time you run the script, thus losing the previously save selection set. If you just define the global at the top of the script instead of assigning values to it then it wont be overridden every time you run it. The "BA" at the end…
Nice one!..I guess you can temporary use the max default selection sets when user want to quit max and restore it back when load it up and continue back using your code when doing the modeling, since the default selection sets get saved into the max file and there is no chance for max messed up the selection sets while…
Only one selection set per sub-object level. I can increase it to 5, but first I will try to find a way to increase the number to 10 or more. The main drawback is that the selection sets are not saved with the scene.
I have plans to do almost the same, but first I need to find the best approach. There is no way using maxscript to delete subobjects Named Selection Sets.This can lead to long, long list with sub objects selection sets, and this can be very frustrating.
EDIT; Seems like I found the solution already :) Just replace the "EditPolyMod.SetSelection ePoly_obj #Face face_savedSelection" with "Edit_Poly.select ePoly_obj #Face face_savedSelection"..need to test some more, hopefully it wont break anything else. Yeah, this weekend I really feel like wanted to learn some maxscript to…
miauu: You might be able to delete selection sets by investigating this stock macroscript C:\Program Files\Autodesk\3ds Max 2014\MacroScripts\Macro_NamedSelSets.mcr