Get Prim Direction Vector

Given a prim, find its direction vectors (up vector, forward vector, right vector, etc.)

Installation

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

primPath

token

The path of the input prim - this attribute is used when ‘usePath’ is true

usePath

bool

When true, it will use the ‘primPath’ attribute as the path to the prim, otherwise it will read the connection at the ‘prim’ attribute

True

prim

target

The connection to the input prim - this attribute is used when ‘usePath’ is false

Outputs

Name

Type

Description

Default

Up Vector (upVector)

double[3]

The up vector of the prim

Down Vector (downVector)

double[3]

The down vector of the prim

Forward Vector (forwardVector)

double[3]

The forward vector of the prim

Backward Vector (backwardVector)

double[3]

The backward vector of the prim

Right Vector (rightVector)

double[3]

The right vector of the prim

Left Vector (leftVector)

double[3]

The left vector of the prim