hasApi#

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

bool isaacsim::foundation::usd::openusd::hasApi(
int64_t stageId,
const std::string &path,
const std::string &schemaType,
const std::optional<std::string> &instanceName = std::nullopt,
)#

Checks whether an applied API schema is applied to a prim.

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

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

  • schemaType – [in] Applied API schema type name (SingleApplyAPI or MultipleApplyAPI kind).

  • instanceName – [in] Instance name for multiple-apply schemas; empty for single-apply.

Throws:

std::invalid_argument – if schemaType is unknown or is not an applied API schema.

Returns:

True if the API schema is applied.