nukescripts.geosnap3d
Functions
Return a _nukemath.Vector3 which is the average of the normals of all selected points |
|
Calculate the average position of all points. |
|
Get the size of the bounding box of all the selected points Avoid zero size to allow inverse scaling (1/scale) |
|
Get the rotation vector |
|
Iterates through the points the point and checks if all of them are collinear. |
|
Returns a copy of the given stage. |
|
Return a list of all radians values in argument converted to degrees |
|
If frames is not iterable (i.e it's a single number) we create an array with the single frame |
|
Returns true if a value is very close to zero. |
|
Adds two vectors ensuring the coordinates are actually 0.0 if they are 0.0001 of zero. |
|
Translate/rotate/scale the specified node to the average position of the current vertex selection on the stage. |
|
Get the axis pivot_rotate knob |
|
Get the axis pivot_translate knob |
|
Get the axis rotate knob |
|
Get the axis scaling knob |
|
Get the axis translate knob |
|
Get the axis uniform_scale knob |
|
Generates the transformation matrix for a given node based on its knob values. |
|
Get xyz rotation angles in radians for the prim in world space assuming zxy rotation order |
|
Get whether rotation is enabled by the snap knob with the given prefix |
|
Get whether scale is enabled by the snap knob with the given prefix |
|
Get the currently selected prim |
|
Gets the stage from the active viewer with the specified frame range. |
|
Get whether translation is enabled by the snap knob with the given prefix |
|
Build a GeoVertexSelection from GeoVertexInfos |
|
Return points inside or on the bounding box of a prim in world space |
|
Given a Vector3, returns the least significant axis position, being x, y and z 0, 1 and 2 respectively. |
|
This method will either return true if a copy of the stage is needed, false otherwise. |
|
Called by the snap knobs to perform a pivot_to_selection/pivot_to_bbox/geo_to_selection operation. |
|
Translate and optionally rotate the specified node's Pivot Point to a chosen point on the currently selected prim's bounding box. |
|
Translate and/or rotate the specified node's Pivot Point to the average position/rotation of the current vertex selection on the stage. |
|
Calculate the rotations around the X, Y and Z axes in radians that will align a plane perpendicular to the Z axis with the given triangle. |
|
Return a list of all degree values in argument converted to radians |
|
Rotate the geometry to the vertex selection (does not check for required conditions) |
|
Generates a rotation XYZ matrix from the input vector. |
|
Generates a rotation ZXY matrix from the input vector. |
|
Rotate the pivot to rotation angles without affecting the geometry's position |
|
Rotate the pivot to the vertex selection without affecting the geometry's position |
|
Scale the geometry to the vertex selection (does not check for required conditions) |
|
Generates a scaling matrix from the input vector. |
|
selectedVertexInfos(selectionThreshold) -> iterator |
|
Returns whether we need to animate the knob by checking how many frames we are going to affect and whether we want to animate even if only a single frame will be affected. |
|
Translate the geometry to the vertex selection (does not check for required conditions) |
|
Generates a translation matrix from the input vector. |
|
Translate the pivot to the vertex selection without affecting the geometry's position |
|
Translate the pivot to world position without affecting the geometry's position |
|
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. |
|
Transpose Matrix3 in place |
|
Verify the transform/rotation order |
|
Check knobs exist and current transform/rotation order is supported |
|
GeoSelection should have at least 3 selected vertices for rotation |
|
GeoSelection should have at least 1 selected vertex. |
Classes
Information on a single vertex in the selection |
|
Selection container |
|