visjes
10-26-2005, 12:29 AM
Hi,
I'm making an attribute editor template script, in it I have a couple enum dropdowns that are created like:
editorTemplate -callCustom "newFunc" "replFunc" $nodeName;
And they are created with attrEnumOptionMenuGrp. Is there any way that I can put a watch or something on that control (the enum group) so that when its value is changed, a function is called? Basically I want it to function like what happens if you do:
editorTemplate -addControl "someAttr" "checkAttrFunc";
I tried putting it in the replFunc procedure but that only seems to get called when first opening the attribute editor, not when changing the attribute.
Thanks,
Mike
I'm making an attribute editor template script, in it I have a couple enum dropdowns that are created like:
editorTemplate -callCustom "newFunc" "replFunc" $nodeName;
And they are created with attrEnumOptionMenuGrp. Is there any way that I can put a watch or something on that control (the enum group) so that when its value is changed, a function is called? Basically I want it to function like what happens if you do:
editorTemplate -addControl "someAttr" "checkAttrFunc";
I tried putting it in the replFunc procedure but that only seems to get called when first opening the attribute editor, not when changing the attribute.
Thanks,
Mike
