Set pivot
In: Substance model graphs > Scene management
Description
The Set pivot node assigns a new pivot position and orientation to one or more elements of a scene.
Any transformations following the Set Pivot node should transform the object in local space to make use of the modified pivot.
For instance, the Transform space parameter of the Transform node let you set the transformation space.
All nodes in a Substance model graph which take a scene as an input will change the scene using its global world-aligned bounding box as a reference space, unless specified otherwise explicitly by a parameter.
Therefore, an object's pivot may be ignored if the node does not specifically let you use it for driving its effect.
Parameters
- Input Scene
The input scene holding the element for which the pivot should be set. - Pivot Integer (selects an Enum index)
The source of the new pivot:- Bounding box center: Place and orient the new pivot relatively to the center of the Scene's bounding box;
- Basis: Place and orient the new pivot to match the custom Basis defined in the Basis input;
- World origin: Place and orient the new pivot to match the world origin.
- Bounding box alignment Integer (selects an Enum index)
The Basis in which the bounding box should be computed:
Note: This parameter is only available when the Pivot parameter is set to Bounding box center.- World: Compute a world-space aligned bounding box;
- Local: Compute a local-space aligned bounding box;
- Basis: Compute a bounding box aligned with the custom Basis defined in the Basis input.
- Relative position Float3
Applies an offset to the position of the new bounding box relatively to the center of the Scene's bounding box.
Note: This parameter is only available when the Pivot parameter is set to Bounding box center. - Basis
- Basis Scene
The input Scene holding a custom Basis. - Basis Mode Integer (selects an Enum index)
The arrangement of the axes in the custom Basis.
Note: This parameter is only available when the Bounding box alignment or Pivot parameters are set to Basis.
- Basis Scene
- Path expression String
The path to the target elements for which the pivot should be set. Go to Path expressions and filtering to learn more.
Example Images