setPrimAttributeValues#
Fully qualified name: isaacsim::foundation::usd::openusd::setPrimAttributeValues
- std::vector<bool> isaacsim::foundation::usd::openusd::setPrimAttributeValues(
- int64_t stageId,
- const std::vector<std::string> &paths,
- const std::string &attributeName,
- const AttributeValues &values,
Writes an attribute’s value to multiple prims in a single call.
- Parameters:
stageId – [in] Stage to operate on.
paths – [in] List of absolute SdfPath strings to write to.
attributeName – [in] Name of the attribute to write.
values – [in] Values to write; must be compatible with the attribute’s type.
- Throws:
std::invalid_argument – If
pathsis empty, or any path does not refer to a valid prim.isaacsim::common::exceptions::AttributeNameError – If any prim lacks
attributeName.
- Returns:
Per-prim success flags, one entry per path.