The Align SOP aligns a group of primitives to each other or to an auxiliary input, by translating or rotating each primitive along any pivot point.
Left and Right Primitives - The notions of "left" and "right" which follow depend on context. If an auxiliary input is used, it is always the right primitive and the primary input geometry are all left primitives. If only one input is used, then for each pair being aligned, there is a left and a right primitive. This means that relative to neighbouring primitives, one primitive can be both left and right.
Parameters - Page
group - A subset of primitives to align (accepts patterns, as described in Pattern Matching in the Scripting Guide). If blank, it aligns the entire input.
align - ⊞ - Can optionally align subgroups of n primitives or every nth primitive in a cyclical manner.
- All Primitives
- Groups of N Primitives
- Skip Every Nth Primitive
inc - Determines the number of primitives to be either grouped or skipped.
Example: Assume there are six primitives numbered for 0 - 5, and N = 2. Then:
Parameters - Align Page
bias - Determines which primitive remains unaffected: 0 Left, 1 Right.
leftuv - ⊞ - Pivot Location for each "left" primitive.
rightuv - ⊞ - Pivot location for each "right" primitive.
Right UV End
rightuvend - ⊞ - If an auxiliary input is used, this location specifies an end point for the alignment. Left primitives are then distributed uniformly between the
Right UV and the
Right UV End.
individual - Causes each primitive of the input to be aligned. If unchecked, only the first primitive is aligned and all others are placed relative to it, preserving the spatial layout of the left primitives.
dotrans - When enabled, translates primitives during alignment by translating the left UV position to the right UV position.
dorotate - When enabled, rotates primitives during alignment by aligning the left UV tangents (at the left UV position) to the right UV tangents (at the right UV position).
Parameters - Transform Page
xord - ⊞ - Sets the overall transform and rotation order for the transformations. The transform and rotation order determines the order in which transformations take place. Depending on the order, you can achieve different results using the exact same values.
- Scale Rotate Translate
- Scale Translate Rotate
- Rotate Scale Translate
- Rotate Translate Scale
- Translate Scale Rotate
- Translate Rotate Scale
rord - ⊞ - Sets the overall transform and rotation order for the transformations. The transform and rotation order determines the order in which transformations take place. Depending on the order, you can achieve different results using the exact same values.
- Rx Ry Rz
- Rx Rz Ry
- Ry Rx Rz
- Ry Rz Rx
- Rz Rx Ry
- Rz Ry Rx
t - ⊞ - Allows you to perform a post-alignment transformation. Specify the amount of translation about the local
r - ⊞ - Allows you to perform a post-alignment transformation. Specify the amount of rotation about the local
s - ⊞ - Allows you to perform a post-alignment transformation. Specify the amount of scaling about the local
p - ⊞ - Allows you to perform a post-alignment transformation. Specify the amount of translation / rotation / scaling about the local
- Input 0 -
- Input 1 -