attribute_value_as_usd
- omni.graph.core.attribute_value_as_usd(og_type: Type, value: Any, array_limit: Optional[int] = None) Any
Returns the value, converted into a type suitable for setting through the USD API compatible with an attribute of the given type. It’s assumed that anything passed in here has a valid USD attribute type; i.e. no extended attributes or bundles
- Parameters
og_type – The OG type of the given data
value – The value read from the attribute
array_limit – Arrays larger than this value will be truncated
- Returns
The USD-compatible value
- Return type
Any