Rotate Array
Shifts the elements of an array by the specified number of steps to the right and wraps elements from one end to the other. A negative step will shift to the left.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (inputs:array) |
|
The original, unrotated array. |
None |
Steps (inputs:steps) |
|
The number of steps to shift the output array elements, where negative values mean shift left instead of right. Values will wrap back to zero when “Steps” % arrayLength == 0. |
0 |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (outputs:array) |
|
A copy of the input array whose member elements have been rotated. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ArrayRotate |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Rotate Array |
Categories |
math:array |
Generated Class Name |
OgnArrayRotateDatabase |
Python Module |
omni.graph.nodes |