createPrimAttribute#
Fully qualified name: isaacsim::foundation::usd::openusd::createPrimAttribute
- bool isaacsim::foundation::usd::openusd::createPrimAttribute(
- int64_t stageId,
- const std::string &path,
- const std::string &attributeName,
- const std::string &typeName,
Creates a new attribute on a prim.
- Parameters:
stageId – [in] Stage to operate on.
path – [in] Absolute SdfPath of the prim.
attributeName – [in] Name of the attribute to create.
typeName – [in] SdfValueTypeName string for the attribute (e.g. “float”, “double3[]”).
- Returns:
True if the attribute was created successfully.