Patch Editor
Utility Patches
Global and Local Transform Patches

Global and Local Transform Patches

Use the Global and Local Transform patches to output an object’s global or local position, scale and rotation.

What are global and local coordinate systems?

The global coordinate system is the primary system, to which all objects in the Scene's position, rotation and scale relate to. Objects also belong to their own coordinate system - known as the local coordinate system.

If an object is parented under another object, it will inherit the parent object’s local coordinates. Coordinate values under the local system are calculated using the parent object’s origin point, rather than the one defined by the global coordinate system that affects all other objects.

The Global Transform patch

The Global Transform patch outputs the global position, scale and rotation of an object.

In the example below, we’ve attached a patch representing an object to the Object input port in the Global Transform patch.

Each output is connected to a Value patch, which show the global position, scale and rotation of the object:

Input

NameDescription

Object

The 3D object you want to use.

Outputs

NameDescription

Position

Global transform position of the object.

Scale

Global transform scale of the object.

Rotation

Global transform rotation of the object.

The Local Transform patch

The Local Transform patch outputs an object’s local position, scale and rotation.

These values are the same as the object’s values under Transformations in the Inspector.

The Local Transform patch outputs the same values that consumer patches representing the position, scale and rotation of objects represent. Avoid creating a graph that connects an object patch to a Local Transform patch and then a consumer patch representing the same object’s position, scale or rotation. Doing this will create an infinite loop, which it’s best to avoid.

Input

NameDescription

Object

The 3D object you want to use.

Outputs

NameDescription

Position

Local transform position of the object.

Scale

Local transform scale of the object.

Rotation

Local transform rotation of the object.

Example

In the example below we’ve used the Local Transform patch to bind one object’s properties to another object in the scene.

We’ve done this by connecting a patch representing a 3D object shaped like a heart to the Object port in the Local Transform patch. The Position output port in the Local Transform patch is connected to a patch representing the 3D Position of another scene object - a plane.

When we move the heart using the manipulators, the plane moves too:

Was this article helpful?