createMaterial#

Fully qualified name: usdex::core::createMaterial

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

Create a UsdShadeMaterial as a child of the Prim parent.

Parameters:
  • parent – Parent prim of the new material

  • name – Name of the material to be created

Returns:

The newly created UsdShadeMaterial. Returns an invalid material object on error.