getVariants#

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

std::unordered_map<std::string, std::vector<std::string>> isaacsim::foundation::usd::openusd::getVariants(
int64_t stageId,
const std::string &path,
bool selection = true,
)#

Returns the variant sets and their available or selected variants for a prim.

Parameters:
  • stageId – [in] Stage to query.

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

  • selection – [in] If true, returns the selected variant per set; if false, returns all available variants.

Returns:

Map from variant set name to a list of variant name(s).