nukescripts

Functions

addDropDataCallback

Add a function to the list of callbacks.

addSnapFunc

Add a new snapping function to the list.

allNodes

Return an iterator which yields all nodes in the current script.

allNodesWithGeoSelectKnob

allign_nodes

animation_loop

animation_move

animation_negate

animation_reverse

anySelectedPoint

Return a selected point from the active viewer or the first viewer with a selection.

anySelectedVertexInfo

Returns a single VertexInfo for a selected point.

autoBackdrop

Automatically puts a backdrop behind the selected nodes.

autocrop

Run the CurveTool’s AutoCrop function on each selected node over the specified frame range and channels.

averageNormal

averageNormal(selectionThreshold -> _nukemath.Vector3 Return a _nukemath.Vector3 which is the average of the normals of all selected points

branch

cache_clear

Clears the buffer memory cache by calling nuke.memory(“free”) If args are supplied they are passed to nuke.memory as well eg.

cache_particles_panel

cache_report

Gets info on memory by calling nuke.memory(“info”) If args are supplied they are passed to nuke.memory as well eg.

calcAveragePosition

Calculate the average position of all points.

calcBounds

calcRotationVector

callSnapFunc

Call the snapping function on a node.

cameraProjectionMatrix

Calculate the projection matrix for the camera based on its knob values.

camera_down

All new camera_down that uses the version_get/set functions.

camera_up

All new camera_up that uses the version_get/set functions.

checkUdimValue

clearAllCaches

Clears all caches.

clear_selection_recursive

Sets all nodes to unselected, including in child groups.

color_nodes

Set all selected nodes to be the same colour as the first selected node.

connect_selected_to_viewer

Connects the selected node to the given viewer input index, ignoring errors if no node is selected.

copy_knobs

createCamera

Create a camera node based on the values set in the given unreal reader node

createReadNode

Create a read node for the rendered output

create_camera_here

create_curve

create_read

Create a Read node for a file selected from the file browser.

create_viewsplitjoin

cut_paste_file

declone

dropData

Handle data drops by invoking the list of callback functions until one has handled the event

executeDeferred

executeInMainThread

Execute the callable ‘call’ with optional arguments ‘args’ and named arguments ‘kwargs’ i n Nuke’s main thread and return immediately.

executeInMainThreadWithResult

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.

execute_panel

export_nodes_as_script

extract

Disconnect all arrows between selected and unselected nodes, and move selected nodes to the right.

findMaxVersionForFileName

Helper function for finding the max version of a paticular script in it’s current directory.

findNextName

findNextNodeName

flipbook

Runs an arbitrary command on the images output by a node.

getLUTPath

Returns a path to a LUT file for the given flipbook.

getSelection

get_reads

Returns file names from all Read nodes.

get_script_data

getallnodeinfo

goofy_title

Returns a random message for use as an untitled script name.

goto_frame

groupmake

Builds a group from the current node selection.

import_boujou

Nuke 5.0 Py import_boujou.

import_script

infoviewer

isAudioFilename

isDeepFilename

isGeoFilename

isSceneBrowserFilename

load_all_plugins

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.

makeScriptEditorKnob

nodeIsInside

Returns true if node geometry is inside backdropNode otherwise returns false

node_copypaste

node_delete

parseUdimFile

Parsing a filename string in search of the udim number.

planeRotation

Calculate the rotations around the X, Y and Z axes that will align a plane perpendicular to the Z axis with the given triangle.

precomp_copyToGroup

precomp_open

precomp_render

precomp_selected

print_callback_info

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’]).

projectPoint

Project the given 3D point through the camera to get 2D pixel coordinates.

projectPoints

projectPoint(camera, points) -> list of nuke.math.Vector2

projectSelectedPoints

Using the specified camera, project all of the selected points into 2D pixel coordinates and return their locations.

register

Register a flipbook.

registerLUTPath

Register a LUT for a specific flipbook.

remove_inputs

render_panel

replaceHashes

Replace any sequences of 1 or more hash marks (#) with a printf-style %0nd specifier.

rotateToPointsVerified

scaleToPointsVerified

script_and_write_nodes_version_up

script_command

script_data

script_directory

script_version_up

Increments the versioning in the script name and the path of the timeline write nodes, then saves the new version.

search_replace

Search/Replace in Reads and Writes.

select_by_name

Menu command to select nodes by a glob-pattern name.

select_similar

Included only for compatibility.

selectedPoints

Return an iterator which yields the position of every point currently selected in the Viewer in turn.

selectedVertexInfos

Return an iterator which yields a tuple of the index and position of each point currently selected in the Viewer in turn.

set_fileknob_version

Sets version of the filename knob to the passed in version.

showname

Shows the current script path and, if the selected node is a Read or Write node, the filename from it.

splitInSequence

start

Open a URL or file.

swapAB

Swaps the first two inputs of a node.

timeline_write_version_set

Sets the version number in the file path of the ‘timeline’ write node

toggle

“Inverts” some flags on the selected nodes.

toggle_monitor_out

Toggles monitor out (switches it on if it’s off, or vice versa) for the currently active viewer.

translateRotateScaleSelectionToPoints

translateRotateScaleThisNodeToPoints

translateRotateScaleToPoints

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.

translateRotateScaleToPointsVerified

translateRotateSelectionToPoints

translateRotateThisNodeToPoints

translateRotateToPoints

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.

translateRotateToPointsVerified

translateSelectionToPoints

translateThisNodeToPoints

translateToPoints

Translate the specified node to the average position of the current vertex selection in the active viewer.

translateToPointsVerified

transpose

udimStr

udim_group

udim_import

Imports a sequence of UDIM files and creates the node material tree needed.

update_plugin_menu

uv2udim

verifyNodeOrder

verifyNodeToSnap

verifyVertexSelection

version_down

All new version_down that uses the version_get/set functions.

version_get

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.

version_latest

Like version_up, but only goes up to the highest numbered version that exists.

version_set

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.

version_up

All new version_up that uses the version_get/set functions.

Classes

FlipbookApplication

An interface, for so far as Python supports it.

FlipbookFactory

FlipbookLUTPathRegistry

A registery of all LUT files against LUTs for each specific flipbook.

InputHighlighter

LineNumberArea

NukeProfiler

PrecompOptions

PrecompOptionsDialog

QSplitter

QSplitter(self, parent: PySide2.QtWidgets.QWidget = None)

QVBoxLayout

QVBoxLayout(self, parent: PySide2.QtWidgets.QWidget)

QWidget

Qt

ScriptEditor

ScriptEditorWidgetKnob

ScriptInputArea

StringIO

Text I/O implementation using an in-memory buffer.

TableDelegate

UDIMErrorDialog

UDIMFile

UDIMOptionsDialog

VersionConflictDialog

Dialog which gives the user options for resolving version conflicts

VersionHelper

Helper class for storing the new version information

VertexInfo

VertexSelection

nukescripts.ViewerProcess

nukescripts.all_plugins

nukescripts.animation

nukescripts.applymaterial

Functions used by the ApplyMaterial node

nukescripts.autobackdrop

nukescripts.blinkscripteditor

nukescripts.bookmarks

nukescripts.cache

nukescripts.camera

nukescripts.camerapresets

nukescripts.captureViewer

This module contains classes for performing a capture of the viewer.

nukescripts.clientserver

nukescripts.create

nukescripts.crop

nukescripts.drop

nukescripts.edit

nukescripts.execute

nukescripts.flags

nukescripts.flip

nukescripts.flipbooking

nukescripts.fnFlipbookRenderer

nukescripts.frame

nukescripts.framecycler

nukescripts.group

nukescripts.hardwareinfo

nukescripts.importexport

nukescripts.info

nukescripts.localisationprefs

Code for handling changes in the localization default in the preferences and applying that as knob defaults on Read nodes.

nukescripts.misc

nukescripts.modelbuilder

Functions used by the ModelBuilder node

nukescripts.nodes

nukescripts.nukeprofiler

nukescripts.openurl

nukescripts.panel_test

nukescripts.panels

nukescripts.plugin_menu

nukescripts.precomp

nukescripts.psd

nukescripts.pyAppUtils

nukescripts.pyQtAppUtils

nukescripts.pyQtExamples

nukescripts.pyWxAppUtils

nukescripts.reads

nukescripts.readviewscheck

Check for multiple views in files when a read node is created, by looking for a VIEW_NAMES entry in the node’s metadata.

nukescripts.renderman

nukescripts.renderpanel

nukescripts.rollingAutoSave

nukescripts.run_framecycler

nukescripts.script

nukescripts.scripteditorknob

nukescripts.searchreplace

nukescripts.select

nukescripts.snap3d

nukescripts.stereo

nukescripts.toolbars

nukescripts.udim

nukescripts.unrealreader

Functions used by the UnrealReader node

nukescripts.utils

nukescripts.version

nukescripts.viewsettingsprefs