Loading...
Searching...
No Matches
UsdMtlxTokensType Class Reference

UsdMtlxTokens provides static, efficient TfTokens for use in all public USD API. More...

#include <tokens.h>

Public Attributes

const TfToken configMtlxVersion
 "config:mtlx:version"
 
const TfToken DefaultOutputName
 "out"
 
const TfToken MaterialXConfigAPI
 "MaterialXConfigAPI"
 
const std::vector< TfTokenallTokens
 A vector of all of the tokens listed above.
 

Detailed Description

UsdMtlxTokens provides static, efficient TfTokens for use in all public USD API.

These tokens are auto-generated from the module's schema, representing property names, for when you need to fetch an attribute or relationship directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient manner, and allow the compiler to verify that you spelled the name correctly.

UsdMtlxTokens also contains all of the allowedTokens values declared for schema builtin attributes of 'token' scene description type. Use UsdMtlxTokens like so:

gprim.GetMyTokenValuedAttr().Set(UsdMtlxTokens->configMtlxVersion);
USDMTLX_API TfStaticData< UsdMtlxTokensType > UsdMtlxTokens
A global variable with static, efficient TfTokens for use in all public USD API.

Definition at line 46 of file tokens.h.

Member Data Documentation

◆ allTokens

const std::vector<TfToken> allTokens

A vector of all of the tokens listed above.

Definition at line 61 of file tokens.h.

◆ configMtlxVersion

const TfToken configMtlxVersion

"config:mtlx:version"

UsdMtlxMaterialXConfigAPI

Definition at line 51 of file tokens.h.

◆ DefaultOutputName

const TfToken DefaultOutputName

"out"

Special token for the usdMtlx library.

Definition at line 55 of file tokens.h.

◆ MaterialXConfigAPI

const TfToken MaterialXConfigAPI

"MaterialXConfigAPI"

Schema identifer and family for UsdMtlxMaterialXConfigAPI

Definition at line 59 of file tokens.h.


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