View Full Version : Check callbucks w/ custom controls

10-26-2005, 12:29 AM

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.


Robert Bateman
10-26-2005, 02:30 PM
not as far as i know, however you can assign a script job to the node to let you know when a nodes attribute has changed.

CGTalk Moderation
10-26-2005, 02:30 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.