HDK
|
#include <HUSD_SetAttributes.h>
Definition at line 28 of file HUSD_SetAttributes.h.
HUSD_SetAttributes::HUSD_SetAttributes | ( | HUSD_AutoWriteLock & | lock | ) |
HUSD_SetAttributes::~HUSD_SetAttributes | ( | ) |
bool HUSD_SetAttributes::addAttribute | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | attrname, | ||
const UT_StringRef & | type, | ||
bool | custom = true |
||
) | const |
Create an attribute or primvar on a primitive.
bool HUSD_SetAttributes::addPrimvar | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname, | ||
const UT_StringRef & | interpolation, | ||
const UT_StringRef & | type | ||
) | const |
Create an attribute or primvar on a primitive.
bool HUSD_SetAttributes::blockAttribute | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | attrname | ||
) | const |
Blocks an attribute or primvar.
bool HUSD_SetAttributes::blockPrimvar | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname | ||
) | const |
Blocks an attribute or primvar.
bool HUSD_SetAttributes::blockPrimvarIndices | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname | ||
) | const |
Blocks an attribute or primvar.
HUSD_TimeCode HUSD_SetAttributes::getAttribEffectiveTimeCode | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | attribname, | ||
const HUSD_TimeCode & | timecode | ||
) | const |
Returns effective time code at which the value should be set. Eg, if attribute has time samples and the given time code is default, it needs to be "promoted" to time code for the specific frame/time. Otherwise, setting value at default time will not take effect, if there is already a value at that specific frame/time. This ensures that getAttribute() returns the same value as set here.
HUSD_TimeCode HUSD_SetAttributes::getPrimvarEffectiveTimeCode | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname, | ||
const HUSD_TimeCode & | timecode | ||
) | const |
Returns effective time code at which the value should be set. Eg, if attribute has time samples and the given time code is default, it needs to be "promoted" to time code for the specific frame/time. Otherwise, setting value at default time will not take effect, if there is already a value at that specific frame/time. This ensures that getAttribute() returns the same value as set here.
HUSD_TimeCode HUSD_SetAttributes::getPrimvarIndicesEffectiveTimeCode | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname, | ||
const HUSD_TimeCode & | timecode | ||
) | const |
Returns effective time code at which the value should be set. Eg, if attribute has time samples and the given time code is default, it needs to be "promoted" to time code for the specific frame/time. Otherwise, setting value at default time will not take effect, if there is already a value at that specific frame/time. This ensures that getAttribute() returns the same value as set here.
bool HUSD_SetAttributes::setAttribute | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | attrname, | ||
const UtValueType & | value, | ||
const HUSD_TimeCode & | timecode, | ||
const UT_StringRef & | valueType = UT_String::getEmptyString() , |
||
bool | custom = true |
||
) | const |
Set an attribute or primvar value on a primitive.
|
inline |
Set an attribute or primvar value on a primitive, but accept the subclasses of the UT_Array.
Definition at line 71 of file HUSD_SetAttributes.h.
bool HUSD_SetAttributes::setAttributes | ( | const UT_StringRef & | primpath, |
const UT_Options & | options, | ||
const HUSD_TimeCode & | timecode, | ||
const UT_StringRef & | attrnamespace = UT_StringHolder::theEmptyString |
||
) | const |
Set attributes for every entry in a UT_Options object.
bool HUSD_SetAttributes::setPrimvar | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvarname, | ||
const UT_StringRef & | interpolation, | ||
const UtValueType & | value, | ||
const HUSD_TimeCode & | timecode, | ||
const UT_StringRef & | valueType = UT_String::getEmptyString() , |
||
int | elementsize = 1 |
||
) | const |
Set an attribute or primvar value on a primitive.
|
inline |
Set an attribute or primvar value on a primitive, but accept the subclasses of the UT_Array.
Definition at line 82 of file HUSD_SetAttributes.h.
bool HUSD_SetAttributes::setPrimvarIndices | ( | const UT_StringRef & | primpath, |
const UT_StringRef & | primvar_name, | ||
const UT_ExintArray & | indices, | ||
const HUSD_TimeCode & | timecode | ||
) | const |
Sets primvar's indices, making it an indexed primvar.