View Full Version : immediate update of channelbox attributes ?

12 December 2005, 02:17 PM
hi everyone...

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:

for ($i=0;$i<21;$i++)
$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.


12 December 2005, 02:35 PM
ah, k.

just read the new post right now from the thread below
Adding/removing values from atributes interactivly? (showthread.php?t=299462) from haider

with scriptJob -attributeChange itīs done


CGTalk Moderation
12 December 2005, 02:35 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.