SdfAssetPath#

Fully qualified name: usdrt::SdfAssetPath

class SdfAssetPath#

SdfAssetPath represent a path to an asset (file or URI) in both un-resolved and resolved form. ‘asset’ type attribute will Get and Set a value of this type.

Public Functions

inline SdfAssetPath()#

Construct an empty asset path.

inline SdfAssetPath(const std::string &path)#

Construct an asset path with an empty resolved path.

Parameters:

path – The unresolved asset path

inline SdfAssetPath(
const std::string &path,
const std::string &resolvedPath,
)#

Construct an asset path unresolved and resolved paths.

Parameters:
  • path – The unresolved asset path

  • resolvedPath – The resolved asset path

inline std::string GetAssetPath() const#

Return the unresolved asset path as a string.

Returns:

unresolved asset path

inline std::string GetResolvedPath() const#

Return the resolved asset path as a string.

Returns:

resolved asset path

inline SdfAssetPath(
omni::core::ObjectPtr<usdrt::IRtAssetPath> assetPath,
)#

Construct an asset from an IRtAssetPath smart pointer.

Parameters:

assetPath – The IRtAssetPath

inline omni::fabric::TokenC _GetAssetPathC() const#

Return the unresolved asset path as a TokenC.

Returns:

unresolved asset path

inline omni::fabric::TokenC _GetResolvedPathC() const#

Return the resolved asset path as a TokenC.

Returns:

resolved asset path

inline bool operator==(const SdfAssetPath &rhs) const#
inline bool operator!=(const SdfAssetPath &rhs) const#
inline bool operator<(const SdfAssetPath &rhs) const#

Public Static Functions

static inline SdfAssetPath CreateFromFabric(
const void *fabricAssetPath,
)#

Create an SdfAssetPath from an omni::fabric::AssetPath pointer (as a void* to avoid including FabricUSD.h which includes USD)

Parameters:

fabricAssetPath – Pointer to an omni::fabric::AssetPath as a void*

Returns:

A new SdfAssetPath object