18 #ifndef __HUSD_BindMaterial__
19 #define __HUSD_BindMaterial__
29 template <
typename T>
class UT_Array;
43 bool bindWithCollection(
const UT_StringRef &mat_prim_path,
46 bool bindWithPathExpression(
const UT_StringRef &mat_prim_path,
66 bool isPrimWithoutBoundMaterial(
const UT_StringRef &prim_path,
87 int unbind_limit = 1)
const;
100 bool assignMaterialsFromAttribute(
104 bool loadasreference,
108 bool create_empty_materials,
121 { myBindMethod = method; }
123 {
return myBindMethod; }
127 { myBindCollectionExpand = expand; }
129 {
return myBindCollectionExpand; }
138 myBindCollectionPrimPath = primpath;
139 myBindCollectionName = collectionname;
142 {
return myBindCollectionPrimPath; }
144 {
return myBindCollectionName; }
150 { myBindCollectionWarnUnspecifiedPrim = warn; }
152 {
return myBindCollectionWarnUnspecifiedPrim; }
164 { myStrength = strength; }
166 {
return myStrength; }
170 { myPurpose = purpose; }
172 {
return myPurpose; }
177 BindMethod myBindMethod;
180 bool myBindCollectionExpand;
181 bool myBindCollectionWarnUnspecifiedPrim;
BindMethod getBindMethod() const
const UT_StringHolder & getBindCollectionPrimPath() const
const UT_StringHolder & getBindCollectionName() const
const UT_StringHolder & getPurpose() const
void setBindCollectionExpand(bool expand)
Sets the collection expansion option when defining collections.
std::optional< T > UT_Optional
bool getBindCollectionWarnUnspecifiedPrim() const
void setPurpose(const UT_StringHolder &purpose)
Sets the purpose for material assignments.
BindMethod
Enumeration of the ways in which a binding can be performed.
Strength
Enumeration of the material binding strength.
void setBindMethod(BindMethod method)
Sets the method of defining bindings.
void setStrength(Strength strength)
Sets the strength preference for material assignments.
**If you just want to fire and args
void setBindCollectionWarnUnspecifiedPrim(bool warn)
void setBindCollectionInfo(const UT_StringHolder &primpath, const UT_StringHolder &collectionname)
bool getBindCollectionExpand() const
Strength getStrength() const