nukescripts
Functions
Add a function to the list of callbacks. |
|
Add a new snapping function to the list. |
|
Return an iterator which yields all nodes in the current script. |
|
Return a selected point from the active viewer or the first viewer with a selection. |
|
Returns a single VertexInfo for a selected point. |
|
|
Automatically puts a backdrop behind the selected nodes. |
Run the CurveTool's AutoCrop function on each selected node over the specified frame range and channels. |
|
averageNormal(selectionThreshold -> _nukemath.Vector3 Return a _nukemath.Vector3 which is the average of the normals of all selected points |
|
DeprecationWarning: cache_clear is deprecated. |
|
DeprecationWarning: cache_report is deprecated. |
|
Calculate the average position of all points. |
|
Call the snapping function on a node. |
|
Calculate the projection matrix for the camera based on its knob values. |
|
All new camera_down that uses the version_get/set functions. |
|
All new camera_up that uses the version_get/set functions. |
|
Clears all caches. |
|
Sets all nodes to unselected, including in child groups. |
|
Set all selected nodes to be the same colour as the first selected node. |
|
Connects the selected node to the given viewer input index, ignoring errors if no node is selected. |
|
Create a camera node based on the values set in the given unreal reader node |
|
Create a read node for the rendered output |
|
Create a Read node for a file selected from the file browser. |
|
|
|
Handle data drops by invoking the list of callback functions until one has handled the event |
|
Execute the callable 'call' with optional arguments 'args' and named arguments 'kwargs' i n Nuke's main thread and return immediately. |
|
Execute the callable 'call' with optional arguments 'args' and named arguments 'kwargs' in Nuke's main thread and wait for the result to become available. |
|
Disconnect all arrows between selected and unselected nodes, and move selected nodes to the right. |
|
Helper function for finding the max version of a paticular script in it's current directory. |
|
Runs an arbitrary command on the images output by a node. |
|
Returns a path to a LUT file for the given flipbook. |
|
Returns file names from all Read nodes. |
|
Returns a random message for use as an untitled script name. |
|
Builds a group from the current node selection. |
|
Returns a string containing the number of bytes and the ISO/IEC units used. |
|
Nuke 5.0 Py import_boujou. |
|
Scan all of Nuke's plugin load paths and attempt to load any .dylib, .so, or .dll files as a plugin, skipping any files listed in PLUGINS_FILTER. |
|
Returns true if node geometry is inside backdropNode otherwise returns false |
|
Parsing a filename string in search of the udim number. |
|
Calculate the rotations around the X, Y and Z axes that will align a plane perpendicular to the Z axis with the given triangle. |
|
Returns a list of all currently active callbacks, with the following optional arguments: verbose=False : prints the documentation as well as the callback callbackTypes=None : limit the callback info to a particular callback type (e.g. ['OnCreates']). |
|
Project the given 3D point through the camera to get 2D pixel coordinates. |
|
projectPoint(camera, points) -> list of nuke.math.Vector2 |
|
Using the specified camera, project all of the selected points into 2D pixel coordinates and return their locations. |
|
|
|
Register a flipbook. |
|
Register a LUT for a specific flipbook. |
|
Replace any sequences of 1 or more hash marks (#) with a printf-style %0nd specifier. |
|
Generates a rotation XYZ matrix from the input vector. |
|
Generates a rotation ZXY matrix from the input vector. |
|
Generates a scaling matrix from the input vector. |
|
Increments the versioning in the script name and the path of the timeline write nodes, then saves the new version. |
|
Search/Replace in Reads and Writes. |
|
Menu command to select nodes by a glob-pattern name. |
|
Included only for compatibility. |
|
Return an iterator which yields the position of every point currently selected in the Viewer in turn. |
|
Return an iterator which yields a tuple of the index and position of each point currently selected in the Viewer in turn. |
|
Sets version of the filename knob to the passed in version. |
|
Creates a tree containing memory information from tracked allocations. |
|
Shows the current script path and, if the selected node is a Read or Write node, the filename from it. |
|
Open a URL or file. |
|
Swaps the first two inputs of a node. |
|
Sets the version number in the file path of the 'timeline' write node |
|
"Inverts" some flags on the selected nodes. |
|
Toggles monitor out (switches it on if it's off, or vice versa) for the currently active viewer. |
|
Generates the transformation matrix for a given node based on its knob values. |
|
Generates a translation matrix from the input vector. |
|
Translate the specified node's Pivot Point to the average position of the current vertex selection in the active viewer. |
|
Pivot translation and rotation must keep the object stationary and in order to do that compensation values must be placed in the geometry translate and rotate. |
|
Translate the specified node to the average position of the current vertex selection in the active viewer, rotate to the orientation of the (mean squares) best fit plane for the selection and scale to the extents of the selection. |
|
Translate the specified node to the average position of the current vertex selection in the active viewer and rotate to the orientation of the (mean squares) best fit plane for the selection. |
|
Translate the specified node to the average position of the current vertex selection in the active viewer. |
|
Imports a sequence of UDIM files and creates the node material tree needed. |
|
All new version_down that uses the version_get/set functions. |
|
Extract version information from filenames used by DD (and Weta, apparently) These are _v# or /v# or .v# where v is a prefix string, in our case we use "v" for render version and "c" for camera track version. |
|
Like version_up, but only goes up to the highest numbered version that exists. |
|
Changes version information from filenames used by DD (and Weta, apparently) These are _v# or /v# or .v# where v is a prefix string, in our case we use "v" for render version and "c" for camera track version. |
|
All new version_up that uses the version_get/set functions. |
Classes
An interface, for so far as Python supports it. |
|
A registery of all LUT files against LUTs for each specific flipbook. |
|
|
|
Text I/O implementation using an in-memory buffer. |
|
Dialog which gives the user options for resolving version conflicts |
|
Helper class for storing the new version information |
|
|
|
|
|
|
|
|
Functions used by the ApplyMaterial node |
|
|
|
|
|
|
|
|
|
|
|
|
|
This module contains classes for performing a capture of the viewer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code for handling changes in the localization default in the preferences and applying that as knob defaults on Read nodes. |
|
|
|
Functions used by the ModelBuilder node |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Check for multiple views in files when a read node is created, by looking for a VIEW_NAMES entry in the node's metadata. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions used by the UnrealReader node |
|
|
|
|
|