Notifications
Clear all

[Closed] selection lock via maxscript

is it possible to access the selection lock via maxscript and keep it locked lets say while a checkbutton is checked?

4 Replies

yes …
you should look into the REF. under max commands
selection lock will be activated by the code Max SpaceBar

now you do whatever you like , buttonpressed , checkbox … whatever …

one way to get a speedy info to get into maxscript is to enable the macrolistener
i Wrote ” yeah , Wrote:P” a script to allow me for rotation around subobject level
and as far as i remember it was all stolen from the macrolistener

thanks dude. i did check the ref but i didnt think to look under max commands. also i do use the macro-recorder a lot however it often returns things like this:

actionMan.executeAction 0 "59231"  -- Selection: Selection Lock Toggle

which obviously is not ‘max spacebar’
thanks again!

open max
press F11

now on the macrorecorder menu , i choose these sttings

*Explicit SceneObjects Name
*Asolute transform Assignement
*xplicit SubObject sets

and i check the last *3 options

now enable the Macro recorder and lock the selection and you will get the Max SpaceBar

wow dude thats awesom, i didn’t even know about those options!
thanks again, this will be very helpful indeed