iīm quite on a beginner level of using mel in maya and have one problem:
i have lot of dynamic objects in my scene and for easier use i made a locator which has all of those attributes collected together. so i can edit them all just having the locator selected.
now, cause the list is quite long i made a script, which uses a popup to display just those attributes i want to edit, to keep the channelbox clean.
everything works fine but...the channelbox only updates when the time changes (i have to slide the timeline). and thatīs quite mad.
is there a way on how the script is being executed immediately after the attribute is changed ?
this is the core,just to let you imagine what happens:
$attribute = ("Dynamic_weight_control.J"+$parts[$i]+"_enable");
setAttr -k off $attribute;
string $selection = `getAttr -as Dynamic_weight_control.Dynamic_part`;
$actattribute = ("Dynamic_weight_control.J"+ $selection +"_enable");
setAttr -k on $actattribute;
the attribute .dynamic_part is an enum.