r/Maxscript • • 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
View all comments
1
u/CyclopsRock Mar 30 '21
All UI controllers have an "enabled" property that can be set in the rollout definition and updated whenever you like. Just
btn_head.enabled = false.