OmniGraph Node omni.graph.ImportUSDPrim¶
omni.graph.ImportUSDPrim Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.io |
Icon |
ogn/icons/omni.graph.ImportUSDPrim.svg |
Has State? |
True |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
import USD prim data |
Generated Class Name |
OgnImportUSDPrimDatabase |
Python Module |
omni.graph.io |
omni.graph.ImportUSDPrim Description¶
Imports data from a USD prim into attributes in an output bundle
omni.graph.ImportUSDPrim Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:applySkelBinding |
bool |
True |
Y |
If the input USD prim is a Mesh, and has SkelBindingAPI schema applied, compute skinned points and normals. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:applyTransform |
bool |
False |
Y |
If importAttributes is true, apply the transform necessary to transform any transforming attributes into the space of this node. |
displayGroup |
parameters |
|||
__default |
false |
|||
inputs:attrNamesToImport |
token |
Y |
Comma or space separated text, listing the names of attributes in the input data to be imported or empty to import all attributes. |
|
uiName |
Attributes To Import |
|||
displayGroup |
parameters |
|||
__default |
“” |
|||
inputs:computeBoundingBox |
bool |
False |
Y |
Compute and store local bounding box of a prim and its children. |
displayGroup |
parameters |
|||
__default |
false |
|||
inputs:importAttributes |
bool |
True |
Y |
Import attribute data from the USD prim. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:importPath |
bool |
True |
Y |
Record the input USD prim’s path into the output bundle in an attribute named “primPath”. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:importPrimvarMetadata |
bool |
True |
Y |
Import metadata like the interpolation type for primvars, and store it as attributes in the output bundle. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:importTime |
bool |
True |
Y |
Record the usdTimecode above into the output bundle in an attribute named “primTime”. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:importTransform |
bool |
True |
Y |
Record the transform required to take any attributes of the input USD prim into the space of this node, i.e. the world transform of the input prim times the inverse world transform of this node, into the output bundle in an attribute named “transform”. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:importType |
bool |
True |
Y |
Record the input USD prim’s type name into the output bundle in an attribute named “primType”. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:inputAttrNames |
token |
Y |
Comma or space separated text, listing the names of attributes in the input data to be renamed |
|
uiName |
Attributes To Rename |
|||
__default |
“” |
|||
inputs:keepPrimsSeparate |
bool |
True |
Y |
Prefix output attribute names with “prim” followed by a unique number and a colon, to keep the attributes for separate input prims separate. The prim paths will be in the “primPaths” token array attribute. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:outputAttrNames |
token |
Y |
Comma or space separated text, listing the new names for the attributes listed in inputAttrNames |
|
uiName |
New Attribute Names |
|||
__default |
“” |
|||
inputs:prim |
bundle |
None |
The USD prim from which to import data. |
|
inputs:renameAttributes |
bool |
False |
Y |
If true, attributes listed in “inputAttrNames” will be imported to attributes with the names specified in “outputAttrNames”. |
displayGroup |
parameters |
|||
__default |
false |
|||
inputs:timeVaryingAttributes |
bool |
True |
Y |
Check whether the USD attributes are time-varying and if so, import their data at the time “usdTimecode”. |
displayGroup |
parameters |
|||
__default |
true |
|||
inputs:usdTimecode |
double |
0 |
Y |
The time at which to evaluate the transform of the USD prim. |
displayGroup |
parameters |
|||
__default |
0 |
omni.graph.ImportUSDPrim Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:output |
bundle |
None |
Y |
Output bundle containing all of the imported data. |
omni.graph.ImportUSDPrim State¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
state:prevApplySkelBinding |
bool |
None |
Y |
Value of “applySkelBinding” input from previous run |
state:prevApplyTransform |
bool |
None |
Y |
Value of “applyTransform” input from previous run |
state:prevAttrNamesToImport |
token |
None |
Y |
Value of “attrNamesToImport” input from previous run |
state:prevComputeBoundingBox |
bool |
None |
Y |
Value of “computeBoundingBox” input from previous run |
state:prevImportAttributes |
bool |
None |
Y |
Value of “importAttributes” input from previous run |
state:prevImportPath |
bool |
None |
Y |
Value of “importPath” input from previous run |
state:prevImportPrimvarMetadata |
bool |
None |
Y |
Value of “importPrimvarMetadata” input from previous run |
state:prevImportTime |
bool |
None |
Y |
Value of “importTime” input from previous run |
state:prevImportTransform |
bool |
None |
Y |
Value of “importTransform” input from previous run |
state:prevImportType |
bool |
None |
Y |
Value of “importType” input from previous run |
state:prevInputAttrNames |
token |
None |
Y |
Value of “inputAttrNames” input from previous run |
state:prevInvNodeTransform |
matrixd[4] |
None |
Y |
Inverse transform of the node prim from the previous run. |
state:prevKeepPrimsSeparate |
bool |
None |
Y |
Value of “keepPrimsSeparate” input from previous run |
state:prevOnlyImportSpecified |
bool |
None |
Y |
Value of “onlyImportSpecified” input from previous run |
state:prevOutputAttrNames |
token |
None |
Y |
Value of “outputAttrNames” input from previous run |
state:prevPaths |
token[] |
None |
Y |
Array of paths from the previous run. |
state:prevRenameAttributes |
bool |
None |
Y |
Value of “renameAttributes” input from previous run |
state:prevTimeVaryingAttributes |
bool |
None |
Y |
Value of “timeVaryingAttributes” input from previous run |
state:prevTransforms |
matrixd[4][] |
None |
Y |
Array of transforms from the previous run. |
state:prevUsdTimecode |
double |
None |
Y |
Value of “usdTimecode” input from previous run |