Read Prim Attribute#
Given a path to a prim on the current USD stage and the name of an attribute on that prim, gets the composed value of that attribute, at the global timeline value. Note that xformOp attributes are not supported, use ReadPrimLocalTransform instead.
Installation#
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Attribute Name (inputs:name) |
|
The name of the attribute to get on the specified prim. |
|
Prim (inputs:prim) |
|
The prim to be read from when “Use Path” is false. |
None |
Prim Path (inputs:primPath) |
|
The path of the prim to be modified when “Use Path” is true. |
None |
Time (inputs:usdTimecode) |
|
The time at which to evaluate the transform of the USD prim attribute. A value of “nan” indicates that the default USD time stamp should be used. |
NaN |
Use Path (inputs:usePath) |
|
When true, the “Prim Path” attribute is used as the path to the prim being read, otherwise it will read the connection at the “Prim” attribute. |
False |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Value (outputs:value) |
|
The attribute value |
None |
State#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Correctly Setup (state:correctlySetup) |
|
Whether or not the instance is properly setup |
False |
Import Path (state:importPath) |
|
Path at which data has been imported |
None |
Reimport At Time (state:reimportAtTime) |
|
Internal flag that’s used to help decide if the source attribute at the specified time needs to be reimported. |
None |
Src Attrib (state:srcAttrib) |
|
A Token to the source attribute |
None |
Src Path (state:srcPath) |
|
A Path to the source prim |
None |
Src Path As Token (state:srcPathAsToken) |
|
A Token to the source prim |
None |
Time (state:time) |
|
The timecode at which we have imported the value |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ReadPrimAttribute |
Version |
3 |
Extension |
omni.graph.nodes |
Icon |
ogn/icons/omni.graph.nodes.ReadPrimAttribute.svg |
Has State? |
True |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
usd |
uiName |
Read Prim Attribute |
Categories |
sceneGraph |
Generated Class Name |
OgnReadPrimAttributeDatabase |
Python Module |
omni.graph.nodes |