Houdini 20.5 Nodes Geometry nodes

Compute Transform geometry node

Recomputes world space or local space transforms for points in a hierarchy.

On this page
Since 18.5

This utility node updates either the world space transforms of the points from their local transforms or recomputes the local transforms of the points from their current world space transforms.

When performing operations in world space with a sequence of SOP nodes, this node allows you to update the localtransform attribute and then perform operations on your nodes in the updated local space.

When directly modifying the localtransform attribute on a point or set of points in a hierarchy, this node allows you to update the world space transforms on the geometry.

Attributes

P

The world space translation of the point.

transform

The world space 3×3 transform of the point containing rotation, scale, and shear values.

This attribute is required when the Mode parameter is set to Compute Local from World.

localtransform

The transform of the point relative to its parent.

This attribute is required when the Mode parameter is set to Compute World from Local.

scaleinheritance

Determines how a point inherits the local scale from its parent. See also hou.scaleInheritanceMode.

0

  • Default value.

  • Combines the local transform with the parent world transform.

1

  • Offset only.

  • Only the translation offset from the parent is scaled. The point does not inherit the parent’s local scale.

2

  • Scale and offset.

  • Scales the translation offset from the parent and then applies the parent’s local scale to the current point’s local space.

3

  • Scale only.

  • Does not scale the translation offset and applies the parent local scale to the current point’s local space.

4

  • Ignore.

  • Completely ignores the parent local scale.

Parameters

Mode

Auto

Computes the missing attributes on the geometry.

If transform is missing, then the node recomputes the world space transform.

If localtransform is missing, then the node recomputes the local space transform.

If both are missing, then the node creates an identity transform and computes the local space.

If both are present, then the node falls back to updating the local transforms.

Compute World from Local

Recomputes the world space transforms (as defined by P and transform) from the localtransform attribute for all points.

Warning

When using this Mode, the geometry must have a localtransform attribute or the node will produce an error.

Compute Local from World

Recomputes the localtransform attribute from the current world space transforms (as defined by P and transform) for all the points.

Warning

When using this Mode, the geometry must have a transform attribute or the node will produce an error.

Constrained Group

This group specifies which points will maintain their world space transform during the recomputation of world space transforms from local transforms.

This parameter is only enabled available when Mode is set to Compute World from Local.

Output Attributes

Local Transform

This parameter is only available when Mode is set to Compute World from Local.

Keeps the localtransform attribute on the points.

Effective Local Transform

Adds the effectivelocaltransform attribute to the points.

This is the local transform that the points' children inherit from their parents according to the scaleinheritance attribute.

Inputs

Geometry comprised of a valid hierarchy of points. The node will produce an error if you supply invalid geometry.

Outputs

The input geometry with updated transform attributes.

See also

Geometry nodes