Functions#

void usdex::core::activateDiagnosticsDelegate()

Activates the Delegate to specialize TfDiagnostics handling.

pxr::UsdStageRefPtr usdex::core::addAssetContent(pxr::UsdStagePtr stage, const std::string &name, const std::string &format="usda", const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments(), bool prependLayer=true, bool createScope=true)

Create a specific Content Layer and add it as a sublayer to the stage's edit target.

bool usdex::core::addAssetInterface(pxr::UsdStagePtr stage, const pxr::UsdStagePtr source)

Add an Asset Interface to a stage, which payloads a source stage's contents.

pxr::UsdStageRefPtr usdex::core::addAssetLibrary(pxr::UsdStagePtr stage, const std::string &name, const std::string &format="usdc", const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments())

Create a Library Layer from which the Content Layers can reference prims.

bool usdex::core::addColorTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a color texture to an OpenPBR material.

bool usdex::core::addColorTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a color texture to a preview material.

bool usdex::core::addDiffuseTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a diffuse texture to a preview material.

bool usdex::core::addEmissiveColorToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::GfVec3f &color, const float luminance=1000.0f)

Adds an emissive color and luminance to an OpenPBR material.

bool usdex::core::addEmissiveColorToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::GfVec3f &color)

Adds an emissive color to a preview material.

bool usdex::core::addEmissiveTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath, const float luminance=1000.0f)

Adds an emissive color texture to an OpenPBR material.

bool usdex::core::addEmissiveTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds an emissive color texture to a preview material.

bool usdex::core::addMetallicTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel metallic texture to an OpenPBR material.

bool usdex::core::addMetallicTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel metallic texture to a preview material.

bool usdex::core::addNormalTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a normals texture to an OpenPBR material.

bool usdex::core::addNormalTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a normals texture to a preview material.

bool usdex::core::addOpacityTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel opacity texture to an OpenPBR material.

bool usdex::core::addOpacityTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel opacity texture to a preview material.

bool usdex::core::addOrmTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds an ORM (occlusion, roughness, metallic) texture to an OpenPBR material.

bool usdex::core::addOrmTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds an ORM (occlusion, roughness, metallic) texture to a preview material.

bool usdex::core::addPhysicsToMaterial(pxr::UsdShadeMaterial &material, const float dynamicFriction, const std::optional< float > staticFriction=std::nullopt, const std::optional< float > restitution=std::nullopt, const std::optional< float > density=std::nullopt)

Adds physical material parameters to an existing Material.

bool usdex::core::addPreviewMaterialInterface(pxr::UsdShadeMaterial &material)

Adds UsdShadeInputs to the material prim to create an "interface" to the underlying Preview Shader network.

bool usdex::core::addPrimvarShaderToPbrMaterial(pxr::UsdShadeMaterial &material, const std::string &surfaceInputName, const std::string &primvarName, const pxr::VtValue &fallbackValue=pxr::VtValue())

Adds a primvar reader shader to the material prim and connects it to a surface input.

bool usdex::core::addPrimvarShaderToPreviewMaterial(pxr::UsdShadeMaterial &material, const std::string &surfaceInputName, const std::string &primvarName, const pxr::VtValue &fallbackValue=pxr::VtValue())

Adds a primvar reader shader to the material prim and connects it to a surface input.

bool usdex::core::addRoughnessTextureToPbrMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel roughness texture to an OpenPBR material.

bool usdex::core::addRoughnessTextureToPreviewMaterial(pxr::UsdShadeMaterial &material, const pxr::SdfAssetPath &texturePath)

Adds a single channel roughness texture to a preview material.

bool usdex::core::bindMaterial(pxr::UsdPrim prim, const pxr::UsdShadeMaterial &material)

Authors a direct binding to the given material on this prim.

bool usdex::core::bindMaterialSubsets(const std::vector< pxr::UsdGeomSubset > &subsets, const std::vector< pxr::UsdShadeMaterial > &materials)

Binds materials to the geometry subsets of the given geometry prim.

bool usdex::core::bindPhysicsMaterial(pxr::UsdPrim prim, const pxr::UsdShadeMaterial &material)

Binds a physics material to a given rigid body or collision geometry.

bool usdex::core::blockDisplayName(pxr::UsdPrim prim)

Block this prim's display name (metadata)

const char * usdex::core::buildVersion()

Verify the expected usdex modules are being loaded at runtime.

bool usdex::core::clearDisplayName(pxr::UsdPrim prim)

Clears this prim's display name (metadata) in the current EditTarget (only)

std::string usdex::core::computeEffectiveDisplayName(const pxr::UsdPrim &prim)

Calculate the effective display name of this prim.

pxr::UsdShadeShader usdex::core::computeEffectiveMtlxSurfaceShader(const pxr::UsdShadeMaterial &material)

Get the effective surface Shader of a Material for the MaterialX render context.

pxr::UsdShadeShader usdex::core::computeEffectivePreviewSurfaceShader(const pxr::UsdShadeMaterial &material)

Get the effective surface Shader of a Material for the universal render context.

Vec3fPrimvarData usdex::core::computeMeshNormals(pxr::UsdGeomMesh mesh, const pxr::TfToken &interpolation=pxr::UsdGeomTokens->uniform, const pxr::GfVec3f &fallback=pxr::GfVec3f(0.0f, 0.0f, 1.0f))

Computes mesh normals and updates the mesh with the computed normals.

Vec3fPrimvarData usdex::core::computeMeshNormals(const pxr::VtIntArray &faceVertexCounts, const pxr::VtIntArray &faceVertexIndices, const pxr::VtVec3fArray &points, const pxr::TfToken &interpolation=pxr::UsdGeomTokens->uniform, const pxr::GfVec3f &fallback=pxr::GfVec3f(0.0f, 0.0f, 1.0f))

Computes mesh normals for a given mesh topology.

bool usdex::core::configureAssemblyHierarchy(pxr::UsdPrim prim)

Configure a prim and its descendants to establish a proper asset assembly hierarchy.

bool usdex::core::configureComponentHierarchy(pxr::UsdPrim prim)

Configure a prim and its descendants to establish a proper asset component hierarchy.

bool usdex::core::configureStage(pxr::UsdStagePtr stage, const std::string &defaultPrimName, const pxr::TfToken &upAxis, const double linearUnits, const double massUnits, std::optional< std::string_view > authoringMetadata=std::nullopt)

Configure a stage so that the defining metadata is explicitly authored.

bool usdex::core::configureStage(pxr::UsdStagePtr stage, const std::string &defaultPrimName, const pxr::TfToken &upAxis, const double linearUnits, std::optional< std::string_view > authoringMetadata=std::nullopt)

Configure a stage so that the defining metadata is explicitly authored.

bool usdex::core::connectPrimvarShader(pxr::UsdShadeInput &shaderInput, const std::string &primvarName, const pxr::VtValue &fallbackValue=pxr::VtValue())

Connects a shader input to a primvar reader shader.

pxr::UsdStageRefPtr usdex::core::createAssetPayload(pxr::UsdStagePtr stage, const std::string &format="usda", const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments())

Create a relative layer within a getPayloadToken() subdirectory to hold the content of an asset.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, int value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::GfVec2f &value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::TfToken &value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, float value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, int64_t value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::GfVec3f &value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single vector value.

pxr::UsdGeomPrimvar usdex::core::createConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const std::string &value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

Create and author a constant primvar on a prim from a single scalar value.

pxr::UsdShadeMaterial usdex::core::createMaterial(pxr::UsdPrim parent, const std::string &name)

Create a UsdShadeMaterial as a child of the Prim parent.

pxr::UsdStageRefPtr usdex::core::createStage(const std::string &identifier, const std::string &defaultPrimName, const pxr::TfToken &upAxis, const double linearUnits, const double massUnits, const std::string &authoringMetadata, const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments())

Create and configure a UsdStage so that the defining metadata is explicitly authored.

pxr::UsdStageRefPtr usdex::core::createStage(const std::string &identifier, const std::string &defaultPrimName, const pxr::TfToken &upAxis, const double linearUnits, const std::string &authoringMetadata, const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments())

Create and configure a UsdStage so that the defining metadata is explicitly authored.

void usdex::core::deactivateDiagnosticsDelegate()

Deactivates the Delegate to restore default TfDiagnostics handling.

pxr::UsdGeomCamera usdex::core::defineCamera(pxr::UsdPrim prim, const pxr::GfCamera &cameraData)

Defines a basic 3d camera from an existing prim.

pxr::UsdGeomCamera usdex::core::defineCamera(pxr::UsdPrim parent, const std::string &name, const pxr::GfCamera &cameraData)

Defines a basic 3d camera on the stage.

pxr::UsdGeomCamera usdex::core::defineCamera(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfCamera &cameraData)

Defines a basic 3d camera on the stage.

pxr::UsdGeomCapsule usdex::core::defineCapsule(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a capsule primitive.

pxr::UsdGeomCapsule usdex::core::defineCapsule(pxr::UsdPrim parent, const std::string &name, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a capsule primitive as a child of the parent prim.

pxr::UsdGeomCapsule usdex::core::defineCapsule(pxr::UsdPrim prim, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a capsule primitive from an existing prim.

pxr::UsdGeomCone usdex::core::defineCone(pxr::UsdPrim parent, const std::string &name, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cone primitive as a child of the parent prim.

pxr::UsdGeomCone usdex::core::defineCone(pxr::UsdPrim prim, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cone primitive from an existing prim.

pxr::UsdGeomCone usdex::core::defineCone(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cone primitive.

pxr::UsdGeomCube usdex::core::defineCube(pxr::UsdPrim prim, const double size=2.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cube primitive from an existing prim.

pxr::UsdGeomCube usdex::core::defineCube(pxr::UsdPrim parent, const std::string &name, const double size=2.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cube primitive as a child of the parent prim.

pxr::UsdGeomCube usdex::core::defineCube(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double size=2.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cube primitive.

pxr::UsdGeomBasisCurves usdex::core::defineCubicBasisCurves(pxr::UsdPrim prim, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &basis=pxr::UsdGeomTokens->bezier, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Cubic UsdGeomBasisCurves prim on the stage.

pxr::UsdGeomBasisCurves usdex::core::defineCubicBasisCurves(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &basis=pxr::UsdGeomTokens->bezier, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Cubic UsdGeomBasisCurves prim on the stage.

pxr::UsdGeomBasisCurves usdex::core::defineCubicBasisCurves(pxr::UsdPrim parent, const std::string &name, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &basis=pxr::UsdGeomTokens->bezier, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Cubic UsdGeomBasisCurves prim on the stage.

pxr::UsdGeomCylinder usdex::core::defineCylinder(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cylinder primitive.

pxr::UsdGeomCylinder usdex::core::defineCylinder(pxr::UsdPrim prim, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cylinder primitive from an existing prim.

pxr::UsdGeomCylinder usdex::core::defineCylinder(pxr::UsdPrim parent, const std::string &name, const double radius=1.0, const double height=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a cylinder primitive as a child of the parent prim.

pxr::UsdLuxDomeLight usdex::core::defineDomeLight(pxr::UsdPrim parent, const std::string &name, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt, const pxr::TfToken &textureFormat=pxr::UsdLuxTokens->automatic)

Creates a dome light with an optional texture.

pxr::UsdLuxDomeLight usdex::core::defineDomeLight(pxr::UsdStagePtr stage, const pxr::SdfPath &path, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt, const pxr::TfToken &textureFormat=pxr::UsdLuxTokens->automatic)

Creates a dome light with an optional texture.

pxr::UsdLuxDomeLight usdex::core::defineDomeLight(pxr::UsdPrim prim, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt, const pxr::TfToken &textureFormat=pxr::UsdLuxTokens->automatic)

Creates a dome light with an optional texture.

pxr::UsdShadeMaterial usdex::core::defineGlassPbrMaterial(pxr::UsdPrim parent, const std::string &name, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float previewOpacity=0.2f)

Defines a Glass UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::defineGlassPbrMaterial(pxr::UsdPrim prim, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float previewOpacity=0.2f)

Defines a Glass UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::defineGlassPbrMaterial(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float previewOpacity=0.2f)

Defines a Glass UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::defineGlassPreviewMaterial(pxr::UsdPrim prim, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float opacity=0.2f)

Defines a Glass PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdShadeMaterial usdex::core::defineGlassPreviewMaterial(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float opacity=0.2f)

Defines a Glass PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdShadeMaterial usdex::core::defineGlassPreviewMaterial(pxr::UsdPrim parent, const std::string &name, const pxr::GfVec3f &color, const float indexOfRefraction=1.5f, const float roughness=0.02f, const float opacity=0.2f)

Defines a Glass PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdGeomBasisCurves usdex::core::defineLinearBasisCurves(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Linear UsdGeomBasisCurves prim on the stage.

pxr::UsdGeomBasisCurves usdex::core::defineLinearBasisCurves(pxr::UsdPrim prim, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Linear UsdGeomBasisCurves prim on the stage.

pxr::UsdGeomBasisCurves usdex::core::defineLinearBasisCurves(pxr::UsdPrim parent, const std::string &name, const pxr::VtIntArray &curveVertexCounts, const pxr::VtVec3fArray &points, const pxr::TfToken &wrap=pxr::UsdGeomTokens->nonperiodic, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a batched Linear UsdGeomBasisCurves prim on the stage.

std::vector< pxr::UsdGeomSubset > usdex::core::defineNonOverlappingSubsets(pxr::UsdGeomMesh mesh, const std::vector< pxr::TfToken > &names, const std::vector< pxr::VtIntArray > &indices, const pxr::TfToken &elementType=pxr::UsdGeomTokens->face, const pxr::TfToken &familyName=pxr::UsdShadeTokens->materialBind)

Partially partitions a geometry prim into multiple disjoint subsets.

std::vector< pxr::UsdGeomSubset > usdex::core::definePartitionedSubsets(pxr::UsdGeomMesh mesh, const std::vector< pxr::TfToken > &names, const std::vector< pxr::VtIntArray > &indices, const pxr::TfToken &elementType=pxr::UsdGeomTokens->face, const pxr::TfToken &familyName=pxr::UsdShadeTokens->materialBind)

Fully partitions a geometry prim into multiple disjoint subsets.

pxr::UsdPrim usdex::core::definePayload(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::UsdPrim &source)

Define a payload to a prim.

pxr::UsdPrim usdex::core::definePayload(pxr::UsdPrim parent, const std::string &name, const std::string &sourceIdentifier, std::optional< pxr::SdfPath > primPath=std::nullopt)

Define a payload prim as a child of parent that references an external USD file.

pxr::UsdPrim usdex::core::definePayload(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const std::string &sourceIdentifier, std::optional< pxr::SdfPath > primPath=std::nullopt)

Define a payload to a prim from a USD file.

pxr::UsdPrim usdex::core::definePayload(pxr::UsdPrim parent, const pxr::UsdPrim &source, std::optional< std::string_view > name=std::nullopt)

Define a payload to a prim as a child of the parent prim.

pxr::UsdShadeMaterial usdex::core::definePbrMaterial(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.3f, const float metallic=0.0f)

Defines an OpenPBR UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::definePbrMaterial(pxr::UsdPrim parent, const std::string &name, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.3f, const float metallic=0.0f)

Defines an OpenPBR UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::definePbrMaterial(pxr::UsdPrim prim, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.3f, const float metallic=0.0f)

Defines an OpenPBR UsdShadeMaterial interface that drives both an OpenPBR MaterialX render context and the universal render context.

pxr::UsdShadeMaterial usdex::core::definePhysicsMaterial(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const float dynamicFriction, const std::optional< float > staticFriction=std::nullopt, const std::optional< float > restitution=std::nullopt, const std::optional< float > density=std::nullopt)

Creates a Physics Material.

pxr::UsdShadeMaterial usdex::core::definePhysicsMaterial(pxr::UsdPrim parent, const std::string &name, const float dynamicFriction, const std::optional< float > staticFriction=std::nullopt, const std::optional< float > restitution=std::nullopt, const std::optional< float > density=std::nullopt)

Creates a Physics Material.

pxr::UsdShadeMaterial usdex::core::definePhysicsMaterial(pxr::UsdPrim prim, const float dynamicFriction, const std::optional< float > staticFriction=std::nullopt, const std::optional< float > restitution=std::nullopt, const std::optional< float > density=std::nullopt)

Creates a Physics Material.

pxr::UsdGeomPlane usdex::core::definePlane(pxr::UsdPrim prim, const double width=2.0, const double length=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a plane primitive from an existing prim.

pxr::UsdGeomPlane usdex::core::definePlane(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double width=2.0, const double length=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a plane primitive.

pxr::UsdGeomPlane usdex::core::definePlane(pxr::UsdPrim parent, const std::string &name, const double width=2.0, const double length=2.0, const pxr::TfToken axis=pxr::UsdGeomTokens->z, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a plane primitive as a child of the parent prim.

pxr::UsdGeomPoints usdex::core::definePointCloud(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::VtVec3fArray &points, std::optional< const pxr::VtInt64Array > ids=std::nullopt, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a UsdGeomPoints prim on the stage.

pxr::UsdGeomPoints usdex::core::definePointCloud(pxr::UsdPrim parent, const std::string &name, const pxr::VtVec3fArray &points, std::optional< const pxr::VtInt64Array > ids=std::nullopt, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a UsdGeomPoints prim on the stage.

pxr::UsdGeomPoints usdex::core::definePointCloud(pxr::UsdPrim prim, const pxr::VtVec3fArray &points, std::optional< const FloatPrimvarData > widths=std::nullopt, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a point cloud using the UsdGeomPoints schema.

pxr::UsdGeomMesh usdex::core::definePolyMesh(pxr::UsdPrim parent, const std::string &name, const pxr::VtIntArray &faceVertexCounts, const pxr::VtIntArray &faceVertexIndices, const pxr::VtVec3fArray &points, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec2fPrimvarData > uvs=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a basic polygon mesh on the stage.

pxr::UsdGeomMesh usdex::core::definePolyMesh(pxr::UsdPrim prim, const pxr::VtIntArray &faceVertexCounts, const pxr::VtIntArray &faceVertexIndices, const pxr::VtVec3fArray &points, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec2fPrimvarData > uvs=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a basic polygon mesh from an existing prim.

pxr::UsdGeomMesh usdex::core::definePolyMesh(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::VtIntArray &faceVertexCounts, const pxr::VtIntArray &faceVertexIndices, const pxr::VtVec3fArray &points, std::optional< const Vec3fPrimvarData > normals=std::nullopt, std::optional< const Vec2fPrimvarData > uvs=std::nullopt, std::optional< const Vec3fPrimvarData > displayColor=std::nullopt, std::optional< const FloatPrimvarData > displayOpacity=std::nullopt)

Defines a basic polygon mesh on the stage.

pxr::UsdShadeMaterial usdex::core::definePreviewMaterial(pxr::UsdPrim prim, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.5f, const float metallic=0.0f)

Defines a PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdShadeMaterial usdex::core::definePreviewMaterial(pxr::UsdPrim parent, const std::string &name, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.5f, const float metallic=0.0f)

Defines a PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdShadeMaterial usdex::core::definePreviewMaterial(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfVec3f &color, const float opacity=1.0f, const float roughness=0.5f, const float metallic=0.0f)

Defines a PBR UsdShadeMaterial driven by a UsdPreviewSurface shader network for the universal render context.

pxr::UsdLuxRectLight usdex::core::defineRectLight(pxr::UsdPrim prim, float width, float height, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt)

Creates a rectangular (rect) light with an optional texture.

pxr::UsdLuxRectLight usdex::core::defineRectLight(pxr::UsdStagePtr stage, const pxr::SdfPath &path, float width, float height, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt)

Creates a rectangular (rect) light with an optional texture.

pxr::UsdLuxRectLight usdex::core::defineRectLight(pxr::UsdPrim parent, const std::string &name, float width, float height, float intensity=1.0f, std::optional< std::string_view > texturePath=std::nullopt)

Creates a rectangular (rect) light with an optional texture.

pxr::UsdPrim usdex::core::defineReference(pxr::UsdPrim parent, const std::string &name, const std::string &sourceIdentifier, std::optional< pxr::SdfPath > primPath=std::nullopt)

Define a reference prim as a child of parent that references an external USD file.

pxr::UsdPrim usdex::core::defineReference(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const std::string &sourceIdentifier, std::optional< pxr::SdfPath > primPath=std::nullopt)

Define a reference to a prim from a USD file.

pxr::UsdPrim usdex::core::defineReference(pxr::UsdPrim parent, const pxr::UsdPrim &source, std::optional< std::string_view > name=std::nullopt)

Define a reference to a prim as a child of the parent prim.

pxr::UsdPrim usdex::core::defineReference(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::UsdPrim &source)

Define a reference to a prim.

pxr::UsdGeomScope usdex::core::defineScope(pxr::UsdPrim prim)

Defines a scope from an existing prim.

pxr::UsdGeomScope usdex::core::defineScope(pxr::UsdStagePtr stage, const pxr::SdfPath &path)

Defines a scope on the stage.

pxr::UsdGeomScope usdex::core::defineScope(pxr::UsdPrim parent, const std::string &name)

Defines a scope on the stage.

pxr::UsdGeomSphere usdex::core::defineSphere(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const double radius=1.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a sphere primitive.

pxr::UsdGeomSphere usdex::core::defineSphere(pxr::UsdPrim parent, const std::string &name, const double radius=1.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a sphere primitive as a child of the parent prim.

pxr::UsdGeomSphere usdex::core::defineSphere(pxr::UsdPrim prim, const double radius=1.0, const std::optional< pxr::GfVec3f > displayColor=std::nullopt, const std::optional< float > displayOpacity=std::nullopt)

Defines a sphere primitive from an existing prim.

std::vector< pxr::UsdGeomSubset > usdex::core::defineUnrestrictedSubsets(pxr::UsdGeomMesh mesh, const std::vector< pxr::TfToken > &names, const std::vector< pxr::VtIntArray > &indices, const pxr::TfToken &elementType, const pxr::TfToken &familyName)

Partially partitions a geometry prim into multiple, possibly overlapping, subsets.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdStagePtr stage, const pxr::SdfPath &path, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines an xform on the stage.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim parent, const std::string &name, const pxr::GfMatrix4d &matrix)

Defines an xform on the stage.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim prim, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines a basic xform from an existing prim.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim parent, const std::string &name, std::optional< const pxr::GfTransform > transform=std::nullopt)

Defines an xform on the stage.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdPrim prim, const pxr::GfMatrix4d &matrix)

Defines a basic xform from an existing prim.

pxr::UsdGeomXform usdex::core::defineXform(pxr::UsdStagePtr stage, const pxr::SdfPath &path, const pxr::GfMatrix4d &matrix)

Defines an xform on the stage.

pxr::UsdGeomPrimvar usdex::core::detail::createConstantPrimvarImpl(pxr::UsdPrim prim, const std::string &name, const T &value, const pxr::SdfValueTypeName &valueTypeName=pxr::SdfValueTypeName())

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< float >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< int >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< int64_t >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< pxr::GfVec2f >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< pxr::GfVec3f >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< pxr::TfToken >()

pxr::SdfValueTypeName usdex::core::detail::getPrimvarArrayTypeName< std::string >()

bool usdex::core::detail::isCompatiblePrimvarArrayType(const pxr::SdfValueTypeName &typeName)

bool usdex::core::detail::isCompatiblePrimvarArrayType< pxr::GfVec3f >(const pxr::SdfValueTypeName &typeName)

pxr::SdfValueTypeName usdex::core::detail::resolvePrimvarArrayTypeName(const pxr::SdfValueTypeName &typeName)

pxr::SdfValueTypeName usdex::core::detail::resolvePrimvarArrayTypeName< pxr::GfVec3f >(const pxr::SdfValueTypeName &typeName)

bool usdex::core::detail::setConstantPrimvarImpl(pxr::UsdPrim prim, const std::string &name, const T &value, pxr::UsdTimeCode time)

bool usdex::core::exportLayer(pxr::SdfLayerHandle layer, const std::string &identifier, const std::string &authoringMetadata, std::optional< std::string_view > comment=std::nullopt, const pxr::SdfLayer::FileFormatArguments &fileFormatArgs=pxr::SdfLayer::FileFormatArguments())

Export the given SdfLayer to an identifier with an optional comment.

const pxr::TfToken & usdex::core::getAssetToken()

Get the Asset token.

const pxr::TfToken & usdex::core::getColorSpaceToken(ColorSpace value)

Get the TfToken matching a given ColorSpace

const pxr::TfToken & usdex::core::getContentsToken()

Get the token for the Contents layer.

DiagnosticsLevel usdex::core::getDiagnosticLevel(pxr::TfDiagnosticType code)

Get the DiagnosticsLevel for a given TfDiagnosticType .

DiagnosticsLevel usdex::core::getDiagnosticsLevel()

Get the current DiagnosticsLevel for the Delegate .

DiagnosticsOutputStream usdex::core::getDiagnosticsOutputStream()

Get the current DiagnosticsOutputStream for the Delegate .

std::string usdex::core::getDisplayName(const pxr::UsdPrim &prim)

Return this prim's display name (metadata)

const pxr::TfToken & usdex::core::getGeometryToken()

Get the token for the Geometry layer and scope.

std::string usdex::core::getLayerAuthoringMetadata(const pxr::SdfLayerHandle layer)

Get metadata from the SdfLayer indicating the provenance of the data.

const pxr::TfToken & usdex::core::getLibraryToken()

Get the token for the Library layer.

pxr::UsdAttribute usdex::core::getLightAttr(const pxr::UsdAttribute &defaultAttr)

Get the "correct" light attribute for a light that could have any combination of authored old and new UsdLux schema attributes.

pxr::GfTransform usdex::core::getLocalTransform(const pxr::UsdGeomXformable &xformable, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of an xformable at a given time.

pxr::GfTransform usdex::core::getLocalTransform(const pxr::UsdPrim &prim, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of a prim at a given time.

void usdex::core::getLocalTransformComponents(const pxr::UsdPrim &prim, pxr::GfVec3d &translation, pxr::GfVec3d &pivot, pxr::GfVec3f &rotation, RotationOrder &rotationOrder, pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of a prim at a given time in the form of common transform components.

void usdex::core::getLocalTransformComponents(const pxr::UsdGeomXformable &xformable, pxr::GfVec3d &translation, pxr::GfVec3d &pivot, pxr::GfVec3f &rotation, RotationOrder &rotationOrder, pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of an xformable at a given time in the form of common transform components.

void usdex::core::getLocalTransformComponentsQuat(const pxr::UsdGeomXformable &xformable, pxr::GfVec3d &translation, pxr::GfVec3d &pivot, pxr::GfQuatf &orientation, pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of an xformable at a given time in the form of common transform components with quaternion orientation.

void usdex::core::getLocalTransformComponentsQuat(const pxr::UsdPrim &prim, pxr::GfVec3d &translation, pxr::GfVec3d &pivot, pxr::GfQuatf &orientation, pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of a prim at a given time in the form of common transform components with quaternion orientation.

pxr::GfMatrix4d usdex::core::getLocalTransformMatrix(const pxr::UsdGeomXformable &xformable, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of an xformable at a given time in the form of a 4x4 matrix.

pxr::GfMatrix4d usdex::core::getLocalTransformMatrix(const pxr::UsdPrim &prim, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Get the local transform of a prim at a given time in the form of a 4x4 matrix.

const pxr::TfToken & usdex::core::getMaterialsToken()

Get the token for the Materials layer and scope.

const pxr::TfToken & usdex::core::getPayloadToken()

Get the token for the Payload directory.

const pxr::TfToken & usdex::core::getPhysicsToken()

Get the token for the Physics layer and scope.

const pxr::TfToken & usdex::core::getTexturesToken()

Get the token for the Textures directory.

pxr::TfToken usdex::core::getUsdLayerEncoding(const pxr::SdfLayerHandle layer)

Get the USD file format encoding of the given SdfLayer .

pxr::TfToken usdex::core::getValidChildName(const pxr::UsdPrim &prim, const std::string &name)

Take a prim and a preferred name. Return a valid and unique name as the child name of the given prim.

pxr::TfTokenVector usdex::core::getValidChildNames(const pxr::UsdPrim &prim, const std::vector< std::string > &names)

Take a prim and a vector of the preferred names. Return a matching vector of valid and unique names as the child names of the given prim.

pxr::TfToken usdex::core::getValidPrimName(const std::string &name)

Produce a valid prim name from the input name.

pxr::TfTokenVector usdex::core::getValidPrimNames(const std::vector< std::string > &names, const pxr::TfTokenVector &reservedNames={})

Take a vector of the preferred names and return a matching vector of valid and unique names.

pxr::TfToken usdex::core::getValidPropertyName(const std::string &name)

Produce a valid property name using the Bootstring algorithm.

pxr::TfTokenVector usdex::core::getValidPropertyNames(const std::vector< std::string > &names, const pxr::TfTokenVector &reservedNames={})

Take a vector of the preferred names and return a matching vector of valid and unique names.

bool usdex::core::hasLayerAuthoringMetadata(const pxr::SdfLayerHandle layer)

Check if the SdfLayer has metadata indicating the provenance of the data.

bool usdex::core::isDiagnosticsDelegateActive()

Test whether the Delegate is currently active.

bool usdex::core::isLight(const pxr::UsdPrim &prim)

Determines if a UsdPrim has a UsdLuxLightAPI schema applied.

pxr::GfVec3f usdex::core::linearToSrgb(const pxr::GfVec3f &color)

Translate a linear color value to sRGB color space.

bool usdex::core::removeMaterialInterface(pxr::UsdShadeMaterial &material, bool bakeValues=true)

Removes any UsdShadeInputs found on the material prim.

pxr::GfVec3f usdex::core::sRgbToLinear(const pxr::GfVec3f &color)

Translate an sRGB color value to linear color space.

bool usdex::core::saveLayer(pxr::SdfLayerHandle layer, std::optional< std::string_view > authoringMetadata=std::nullopt, std::optional< std::string_view > comment=std::nullopt)

Save the given SdfLayer with an optional comment.

void usdex::core::saveStage(pxr::UsdStagePtr stage, std::optional< std::string_view > authoringMetadata=std::nullopt, std::optional< std::string_view > comment=std::nullopt)

Save the given UsdStage with metadata applied to all dirty layers.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, int64_t value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, float value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::GfVec3f &value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::GfVec2f &value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const std::string &value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, const pxr::TfToken &value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

bool usdex::core::setConstantPrimvar(pxr::UsdPrim prim, const std::string &name, int value, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set data on an existing constant primvar from a single scalar value.

void usdex::core::setDiagnosticsLevel(DiagnosticsLevel value)

Set the DiagnosticsLevel for the Delegate to filter TfDiagnostics by severity.

void usdex::core::setDiagnosticsOutputStream(DiagnosticsOutputStream value)

Set the DiagnosticsOutputStream for the Delegate to redirect TfDiagnostics to different streams.

bool usdex::core::setDisplayName(pxr::UsdPrim prim, const std::string &name)

Sets this prim's display name (metadata).

bool usdex::core::setEffectiveDisplayName(pxr::UsdPrim prim, const std::string &name)

Sets the effective display name of this prim.

void usdex::core::setLayerAuthoringMetadata(pxr::SdfLayerHandle layer, const std::string &value)

Set metadata on the SdfLayer indicating the provenance of the data.

bool usdex::core::setLocalTransform(const pxr::UsdGeomXformable &xformable, const pxr::GfVec3d &translation, const pxr::GfVec3d &pivot, const pxr::GfVec3f &rotation, const RotationOrder rotationOrder, const pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of an xformable from common transform components.

bool usdex::core::setLocalTransform(pxr::UsdPrim prim, const pxr::GfMatrix4d &matrix, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of a prim from a 4x4 matrix.

bool usdex::core::setLocalTransform(pxr::UsdPrim prim, const pxr::GfVec3d &translation, const pxr::GfVec3d &pivot, const pxr::GfVec3f &rotation, const RotationOrder rotationOrder, const pxr::GfVec3f &scale, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of a prim from common transform components.

bool usdex::core::setLocalTransform(pxr::UsdPrim prim, const pxr::GfTransform &transform, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of a prim.

bool usdex::core::setLocalTransform(const pxr::UsdGeomXformable &xformable, const pxr::GfMatrix4d &matrix, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of an xformable from a 4x4 matrix.

bool usdex::core::setLocalTransform(const pxr::UsdGeomXformable &xformable, const pxr::GfTransform &transform, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of an xformable.

bool usdex::core::setLocalTransform(const pxr::UsdGeomXformable &xformable, const pxr::GfVec3d &translation, const pxr::GfQuatf &orientation, const pxr::GfVec3f &scale=pxr::GfVec3f(1.0f, 1.0f, 1.0f), pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of an xformable from common transform components using a quaternion for orientation.

bool usdex::core::setLocalTransform(pxr::UsdPrim prim, const pxr::GfVec3d &translation, const pxr::GfQuatf &orientation, const pxr::GfVec3f &scale=pxr::GfVec3f(1.0f, 1.0f, 1.0f), pxr::UsdTimeCode time=pxr::UsdTimeCode::Default())

Set the local transform of a prim from common transform components using a quaternion for orientation.

const char * usdex::core::version()

Verify the expected usdex modules are being loaded at runtime.

bool usdex::core::withPython()

Verify whether Python support is available.

bool usdex::test::compareIdentifiers(const std::string &first, const std::string &second)

Compare identifiers (such as those returned by SdfLayer::GetIdentifier() ).