Contact Support

Using Python Callbacks

The LiveGroup node includes a number of Python hooks to cater to the many different asset management systems currently available, all of which have different alerts, flags, callbacks, and so on.

The callback fields are located on the Python tab in the node Properties panel.

The names of the callbacks are fairly self-explanatory, but as a very simple example, you could create a callback to display a message when a LiveGroup is copied to the current script using Make Local.

nuke.message('LiveGroup1 is now in the <span style="color: #ffc800;"><b>Local</b><span style="color: #c8c8c8;"> state.')

Now, when Make Local is executed, a warning displays:

For more information on the available callbacks in Nuke, see docs.thefoundry.co.uk/nuke/110/pythondevguide/callbacks.html