setVariants#

Fully qualified name: isaacsim::foundation::usd::openusd::setVariants

void isaacsim::foundation::usd::openusd::setVariants(
int64_t stageId,
const std::string &path,
const std::unordered_map<std::string, std::vector<std::string>> &variants,
)#

Sets variant selections on a prim’s variant sets.

Parameters:
  • stageId – [in] Stage to operate on.

  • path – [in] Absolute SdfPath of the prim.

  • variants – [in] Map from variant set name to the desired variant selection(s).