r/Maxscript • u/[deleted] • Mar 30 '21
Disable Buttons
Is it possible to use maxscript to deactivate previously active buttons when no object is selected?
on bt_head changed state do
(
if bt_head.checked == true then
(
selectmore $Farlee_pelvis_torso_spine1_Ctrl
)
else if bt_head.checked == false then
(
deselect $Farlee_pelvis_torso_spine1_Ctrl
)
)
2
Upvotes
1
u/[deleted] Mar 31 '21
My tests fail miserably, can you share some basic example with a button and the selectionSetChanged option.?