Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maxscript - Get/Set Selection Lock status

Maxscript - Get/Set Selection Lock status

These are exposed to Mascript as the following:  "isSelectionFrozen()", "freezeSelection()" and "thawSelection()". There is also a toggle command: "max spacebar"

 

The feature is referred to as alternatively "frozen/thawed", "Lock Selection Set" and "Selection Lock", and of course "spacebar".

 

There are several threads asking for a way to implement this functionality, while this search returns zero results: https://www.google.com/search?q=%22selection+lock%22+%22isSelectionFrozen%22

 

Suggested solution: Consistently name the functionality (The popular and simply descriptive term is "selection lock"), update the relevant functions and consolidate the documentation.

 

 

References:

https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=GUID-2C42EF48-5949-4EC9-A067-EBE1267CCBFD

https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=GUID-A96857E7-73FE-4F42-BE71-E8185356F4C9

https://www.google.com/search?q=maxscript+%22selection+lock%22&ei=dZiCYYmbE5iCjLsPzqmEoAw&oq=maxscri...

4 Comments
JoaoSapiro
Explorer

please autodesk !

dswahn
Advocate

There is workaround solution for scripting to sort of lock the selection. It's definitely not as ideal and easy to set up as a simple "get/set" function for the native lock, but the workaround involves creating a callback event that is triggered whenever selection changes, and when it does you simply force the selected objects to a defined set of objects (the ones you wish to lock the selection to). 

Swordslayer
Advisor

This should be a normal post, not an idea, because it's already exposed. The functions you're looking for are freezeSelection() and thawSelection() (no, it doesn't freeze, it locks and unlocks the selection).

perprerp
Contributor

@Swordslayer - Thank you. The function name is "isSelectionFrozen()". It's good that this exists, but unfortunate that neither the function name, the Maxscript documentation nor a google web search give any indication of its actual function.

 

 

edit: I searched on a hunch and found this function in my own script from 12 years ago. Speaks to the obscurity of the documentation/naming.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report