You are here: User Guide > Nuke > Configuring Nuke > Sourcing TCL Procedure

Sourcing TCL Procedure

A Nuke script or gizmo is in fact a TCL procedure (script). Thus, Nuke also allows you to hand code generic TCL procedures to automate Nuke in various ways.

To Source a Generic TCL Procedure

1.   Place the TCL procedure file in the plug-in path directory. Its name should include a .tcl extension.

For more information on plug-in path directories, see Loading Gizmos, NDK Plug-ins, and Python and TCL Scripts.

2.   Create a menu option referencing the plug-in file (see Defining Custom Menus and Toolbars).

Or instruct artists to invoke the TCL script by opening the Script Editor and entering nuke.load ("procedure/script file name") where procedure/script file name stands for the name of the procedure of script file without the extension.

TIP:  For some code samples of useful Nuke TCL procedures, look inside the [Nuke directory]/plugins directory.