nukescripts.snap3d

Functions

addSnapFunc

Add a new snapping function to the list.

allNodes

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

allNodesWithGeoSelectKnob

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.

averageNormal

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

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.

degrees

rtype:

list

getSelection

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.

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.

radians

rtype:

list

rotateMatrixXYZ

Generates a rotation XYZ matrix from the input vector.

rotateMatrixZXY

Generates a rotation ZXY matrix from the input vector.

rotateToPointsVerified

scaleToPointsVerified

scalingMatrix

Generates a scaling matrix from the input vector.

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.

transformMatrix

Generates the transformation matrix for a given node based on its knob values.

translateMatrix

Generates a translation matrix from the input vector.

translatePivotSelectionToPoints

translatePivotToPoints

Translate the specified node's Pivot Point to the average position of the current vertex selection in the active viewer.

translatePivotToPointsVerified

translateRotatePivot

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.

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

verifyNodeOrder

verifyNodeToSnap

verifyVertexSelection

Classes

VertexInfo

VertexSelection