Callback for GroupThis is one of the most popular arguments for using Gizmos over Groups, since Gizmos are handled as their own classes. However, being more a fan of Groups myself, I’ve previously worked around this by adding a hidden “class” knob to any group I want to run callbacks on, and then adding a generic Group callback function that uses the value of that class knob to get and call an appropriate callback function from a “group callbacks” module.
-Nathan From: Ken Boreham Sent: Tuesday, June 07, 2011 8:50 AM To: [email protected] Subject: [Nuke-python] Callback for Group I’d like to make a knob changed callback for a group/gizmo that I’m working on. - I can make a global callback and filter it to the nodeClass=’Group’ but then it runs on any Group. How do you safely handle this? - Creating a global callback requires extra code. How would I distribute this? Would it require an extra python script file to be loaded with the group? Thanks -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
