All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UsdShadeUtils Class Reference

This class contains a set of utility functions used when authoring and querying shading networks. More...

Static Public Member Functions

static USDSHADE_API std::string GetPrefixForAttributeType (UsdShadeAttributeType sourceType)
 Returns the namespace prefix of the USD attribute associated with the given shading attribute type. More...
 
static USDSHADE_API std::pair
< TfToken,
UsdShadeAttributeType > 
GetBaseNameAndType (const TfToken &fullName)
 Given the full name of a shading property, returns it's base name and type. More...
 
static USDSHADE_API TfToken GetFullName (const TfToken &baseName, const UsdShadeAttributeType type)
 Returns the full shading attribute name given the basename and the type. More...
 

Detailed Description

This class contains a set of utility functions used when authoring and querying shading networks.

Definition at line 53 of file utils.h.

Member Function Documentation

static USDSHADE_API std::pair<TfToken, UsdShadeAttributeType> GetBaseNameAndType ( const TfToken fullName)
static

Given the full name of a shading property, returns it's base name and type.

static USDSHADE_API TfToken GetFullName ( const TfToken baseName,
const UsdShadeAttributeType  type 
)
static

Returns the full shading attribute name given the basename and the type.

baseName is the name of the input or output on the shading node. type is the UsdShadeAttributeType of the shading attribute.

static USDSHADE_API std::string GetPrefixForAttributeType ( UsdShadeAttributeType  sourceType)
static

Returns the namespace prefix of the USD attribute associated with the given shading attribute type.


The documentation for this class was generated from the following file: