OmniGraph Node omni.graph.nodes.ConstructArray¶
omni.graph.nodes.ConstructArray Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Make Array |
__categories |
math:array |
Generated Class Name |
OgnConstructArrayDatabase |
Python Module |
omni.graph.nodes |
omni.graph.nodes.ConstructArray Description¶
Makes an output array attribute from input values, in the order of the inputs. If ‘arraySize’ is less than the number of input elements, the top ‘arraySize’ elements will be used. If ‘arraySize’ is greater than the number of input elements, the last input element will be repeated to fill the remaining space.
omni.graph.nodes.ConstructArray Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:arraySize |
int |
0 |
Y |
The size of the array to create |
inputs:arrayType |
token |
auto |
Y |
The type of the array (‘auto’ infers the type from the first connected and resolved input) |
literalOnly |
1 |
|||
allowedTokens |
auto,bool[],double[],float[],half[],int[],int64[],token[],uchar[],uint[],uint64[],double[2][],double[3][],double[4][],matrixd[3][],matrixd[4][],float[2][],float[3][],float[4][],half[2][],half[3][],half[4][],int[2][],int[3][],int[4][] |
|||
__allowedTokens |
{“Auto”: “auto”, “Bool”: “bool[]”, “Double”: “double[]”, “Float”: “float[]”, “Half”: “half[]”, “Int”: “int[]”, “Int64”: “int64[]”, “Token”: “token[]”, “UChar”: “uchar[]”, “UInt”: “uint[]”, “UInt64”: “uint64[]”, “Double_2”: “double[2][]”, “Double_3”: “double[3][]”, “Double_4”: “double[4][]”, “Double_9”: “matrixd[3][]”, “Double_16”: “matrixd[4][]”, “Float_2”: “float[2][]”, “Float_3”: “float[3][]”, “Float_4”: “float[4][]”, “Half_2”: “half[2][]”, “Half_3”: “half[3][]”, “Half_4”: “half[4][]”, “Int_2”: “int[2][]”, “Int_3”: “int[3][]”, “Int_4”: “int[4][]”} |
|||
uiName |
Array Type |
|||
__default |
“auto” |
|||
inputs:input0 |
any |
None |
Y |
Input array element |
omni.graph.nodes.ConstructArray Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:array |
any |
None |
Y |
The array of copied values of inputs in the given order |