On Oct 24, 2014, at 12:13 PM, Nathan Rusch <nathan_ru...@hotmail.com> wrote:
> I don't think there's a reliable way to execute code when commands in that > menu are invoked, if that's what you're after. Bummer. I did find a workaround for the “Set key” item on the menu, since I could use the nuke.thisKnob().isAnimated() method to see if the Set key menu item had been selected. I could then use setAnimated() on the knob I was trying to control. No such workarounds, though, for the other menu items, like “Delete key”, “No animation” or “Set to default”… Ah, well. Thanks for the response! Rich > > -Nathan > > > From: Richard Bobo > Sent: Wednesday, October 22, 2014 11:01 AM > To: Nuke Python discussion > Subject: [Nuke-python] Callbacks from node animation menu...? > > Hi all, > > I didn’t get any responses to this question from about a week ago, so I > thought I’d try again… 8^) > > Anyone know how to get callbacks from a node’s channel animation menu? You > know, the one with the squiggly anim. curve icon at the far right of an > animatable knob? The one that you right-click on and has things like: Set > key, Delete key, No animation, Set to default, Curve Editor..., Dope > Sheet..., Edit Expressions..., Interpolation, etc….? > > The knob seems to go by the name of “indicators”. At least that’s what I get > if I use knobChanged() to get knob events from the knobs of a given node. I > thought that the name of the menu attached to the knob might be “Animation”. > However, the list of items from the Animation menu only returns: File, Edit, > Predefined and Bookend. So, that’s not the menu. Those *are* listed items on > the menu I’m talking about, but they are *after* all of the other listed > items mentioned above. So, it must be different... > > Any help would be appreciated! > > Thanks, > Rich > > > Rich Bobo > Senior VFX Compositor > Armstrong White > Email: rich.b...@armstrong-white.com > http://armstrong-white.com/ > > Email: richb...@mac.com > Mobile: (248) 840-2665 > Web: http://richbobo.com/ > > “Many of the great achievements of the world were accomplished by tired and > discouraged men who kept on working.” > - Unknown > > > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python