2 #include "AL/maya/Common.h"
4 #include "maya/MPlug.h"
5 #include "maya/MAngle.h"
6 #include "maya/MDistance.h"
7 #include "maya/MTime.h"
12 #include "pxr/base/gf/half.h"
41 static MStatus
getBoolArray(
const MObject& node,
const MObject& attr, std::vector<bool>& values);
50 static MStatus
getBoolArray(MObject node, MObject attr,
bool* values,
const size_t count);
58 static MStatus
getInt8Array(
const MObject& node,
const MObject& attr, std::vector<int8_t>& values);
67 static MStatus
getInt8Array(MObject node, MObject attr, int8_t* values,
size_t count);
75 static MStatus
getInt16Array(
const MObject& node,
const MObject& attr, std::vector<int16_t>& values);
84 static MStatus
getInt16Array(MObject node, MObject attr, int16_t* values,
size_t count);
92 static MStatus
getInt32Array(
const MObject& node,
const MObject& attr, std::vector<int32_t>& values);
101 static MStatus
getInt32Array(MObject node, MObject attr, int32_t* values,
size_t count);
109 static MStatus
getInt64Array(
const MObject& node,
const MObject& attr, std::vector<int64_t>& values);
118 static MStatus
getInt64Array(MObject node, MObject attr, int64_t* values,
size_t count);
126 static MStatus
getHalfArray(
const MObject& node,
const MObject& attr, std::vector<half>& values);
135 static MStatus
getHalfArray(MObject node, MObject attr, half* values,
size_t count);
143 static MStatus
getFloatArray(
const MObject& node,
const MObject& attr, std::vector<float>& values);
152 static MStatus
getFloatArray(MObject node, MObject attr,
float* values,
size_t count);
160 static MStatus
getDoubleArray(
const MObject& node,
const MObject& attr, std::vector<double>& values);
169 static MStatus
getDoubleArray(MObject node, MObject attr,
double* values,
size_t count);
177 static MStatus
getVec2Array(MObject node, MObject attr, half* values,
size_t count);
185 static MStatus
getVec2Array(MObject node, MObject attr,
float* values,
size_t count);
193 static MStatus
getVec2Array(MObject node, MObject attr,
double* values,
size_t count);
201 static MStatus
getVec2Array(MObject node, MObject attr, int32_t* values,
size_t count);
210 static MStatus
getVec3Array(MObject node, MObject attr, half* values,
size_t count);
218 static MStatus
getVec3Array(MObject node, MObject attr,
float* values,
size_t count);
226 static MStatus
getVec3Array(MObject node, MObject attr,
double* values,
size_t count);
234 static MStatus
getVec3Array(MObject node, MObject attr, int32_t* values,
size_t count);
242 static MStatus
getVec4Array(MObject node, MObject attr, half* values,
size_t count);
250 static MStatus
getVec4Array(MObject node, MObject attr,
float* values,
size_t count);
258 static MStatus
getVec4Array(MObject node, MObject attr,
double* values,
size_t count);
266 static MStatus
getVec4Array(MObject node, MObject attr, int32_t* values,
size_t count);
274 static MStatus
getQuatArray(MObject node, MObject attr, half* values,
size_t count);
282 static MStatus
getQuatArray(MObject node, MObject attr,
float* values,
size_t count);
290 static MStatus
getQuatArray(MObject node, MObject attr,
double* values,
size_t count);
298 static MStatus
getMatrix2x2Array(MObject node, MObject attr,
float* values,
size_t count);
306 static MStatus
getMatrix2x2Array(MObject node, MObject attr,
double* values,
size_t count);
314 static MStatus
getMatrix3x3Array(MObject node, MObject attr,
float* values,
size_t count);
322 static MStatus
getMatrix3x3Array(MObject node, MObject attr,
double* values,
size_t count);
330 static MStatus
getMatrix4x4Array(MObject node, MObject attr,
float* values,
size_t count);
338 static MStatus
getMatrix4x4Array(MObject node, MObject attr,
double* values,
size_t count);
348 static MStatus
getTimeArray(MObject node, MObject attr,
float* values,
size_t count, MTime::Unit unit);
358 static MStatus
getAngleArray(MObject node, MObject attr,
float* values,
size_t count, MAngle::Unit unit);
368 static MStatus
getDistanceArray(MObject node, MObject attr,
float* values,
size_t count, MDistance::Unit unit);
376 static MStatus
getStringArray(MObject node, MObject attr, std::string* values,
size_t count);
387 static MStatus
getHalf(MObject node, MObject attr, half& value)
390 MStatus status =
getFloat(node, attr, f);
400 static MStatus
getFloat(MObject node, MObject attr,
float& value);
407 static MStatus
getDouble(MObject node, MObject attr,
double& value);
414 static MStatus
getTime(MObject node, MObject attr, MTime& value);
421 static MStatus
getDistance(MObject node, MObject attr, MDistance& value);
428 static MStatus
getAngle(MObject node, MObject attr, MAngle& value);
435 static MStatus
getBool(MObject node, MObject attr,
bool& value);
442 static MStatus
getInt8(MObject node, MObject attr, int8_t& value);
449 static MStatus
getInt16(MObject node, MObject attr, int16_t& value);
456 static MStatus
getInt32(MObject node, MObject attr, int32_t& value);
463 static MStatus
getInt64(MObject node, MObject attr, int64_t& value);
470 static MStatus
getMatrix2x2(MObject node, MObject attr,
float* values);
477 static MStatus
getMatrix3x3(MObject node, MObject attr,
float* values);
484 static MStatus
getMatrix4x4(MObject node, MObject attr,
float* values);
491 static MStatus
getMatrix4x4(MObject node, MObject attr, MFloatMatrix& values);
498 static MStatus
getMatrix2x2(MObject node, MObject attr,
double* values);
505 static MStatus
getMatrix3x3(MObject node, MObject attr,
double* values);
512 static MStatus
getMatrix4x4(MObject node, MObject attr,
double* values);
519 static MStatus
getMatrix4x4(MObject node, MObject attr, MMatrix& values);
526 static MStatus
getString(MObject node, MObject attr, std::string& str);
533 static MStatus
getVec2(MObject node, MObject attr, int32_t* xy);
540 static MStatus
getVec2(MObject node, MObject attr,
float* xy);
547 static MStatus
getVec2(MObject node, MObject attr,
double* xy);
554 static MStatus
getVec2(MObject node, MObject attr, half* xy);
561 static MStatus
getVec3(MObject node, MObject attr, int32_t* xyz);
568 static MStatus
getVec3(MObject node, MObject attr,
float* xyz);
575 static MStatus
getVec3(MObject node, MObject attr,
double* xyz);
582 static MStatus
getVec3(MObject node, MObject attr, half* xyz);
589 static MStatus
getVec4(MObject node, MObject attr, int32_t* xyzw);
596 static MStatus
getVec4(MObject node, MObject attr,
float* xyzw);
603 static MStatus
getVec4(MObject node, MObject attr,
double* xyzw);
610 static MStatus
getVec4(MObject node, MObject attr, half* xyzw);
617 static MStatus
getQuat(MObject node, MObject attr,
float* xyzw);
624 static MStatus
getQuat(MObject node, MObject attr,
double* xyzw);
631 static MStatus
getQuat(MObject node, MObject attr, half* xyzw);
642 static MStatus
setBoolArray(
const MObject& node,
const MObject& attr,
const std::vector<bool>& values);
650 static MStatus
setBoolArray(MObject node, MObject attr,
const bool*
const values,
size_t count);
657 static MStatus
setInt8Array(
const MObject& node,
const MObject& attr,
const std::vector<int8_t>& values);
665 static MStatus
setInt8Array(MObject node, MObject attr,
const int8_t* values,
size_t count);
672 static MStatus
setInt16Array(
const MObject& node,
const MObject& attr,
const std::vector<int16_t>& values);
680 static MStatus
setInt16Array(MObject node, MObject attr,
const int16_t* values,
size_t count);
687 static MStatus
setInt32Array(
const MObject& node,
const MObject& attr,
const std::vector<int32_t>& values);
695 static MStatus
setInt32Array(MObject node, MObject attr,
const int32_t* values,
size_t count);
702 static MStatus
setInt64Array(
const MObject& node,
const MObject& attr,
const std::vector<int64_t>& values);
710 static MStatus
setInt64Array(MObject node, MObject attr,
const int64_t* values,
size_t count);
717 static MStatus
setHalfArray(
const MObject& node,
const MObject& attr,
const std::vector<half>& values);
725 static MStatus
setHalfArray(MObject node, MObject attr,
const half* values,
size_t count);
732 static MStatus
setFloatArray(
const MObject& node,
const MObject& attr,
const std::vector<float>& values);
740 static MStatus
setFloatArray(MObject node, MObject attr,
const float* values,
size_t count);
747 static MStatus
setDoubleArray(
const MObject& node,
const MObject& attr,
const std::vector<double>& values);
755 static MStatus
setDoubleArray(MObject node, MObject attr,
const double* values,
size_t count);
757 static MStatus setVec2Array(MObject node, MObject attr,
const half* values,
size_t count);
758 static MStatus setVec2Array(MObject node, MObject attr,
const float* values,
size_t count);
759 static MStatus setVec2Array(MObject node, MObject attr,
const double* values,
size_t count);
760 static MStatus setVec2Array(MObject node, MObject attr,
const int32_t* values,
size_t count);
762 static MStatus setVec3Array(MObject node, MObject attr,
const half* values,
size_t count);
763 static MStatus setVec3Array(MObject node, MObject attr,
const float* values,
size_t count);
764 static MStatus setVec3Array(MObject node, MObject attr,
const double* values,
size_t count);
765 static MStatus setVec3Array(MObject node, MObject attr,
const int32_t* values,
size_t count);
767 static MStatus setVec4Array(MObject node, MObject attr,
const half* values,
size_t count);
768 static MStatus setVec4Array(MObject node, MObject attr,
const float* values,
size_t count);
769 static MStatus setVec4Array(MObject node, MObject attr,
const double* values,
size_t count);
770 static MStatus setVec4Array(MObject node, MObject attr,
const int32_t* values,
size_t count);
772 static MStatus setQuatArray(MObject node, MObject attr,
const half* values,
size_t count);
773 static MStatus setQuatArray(MObject node, MObject attr,
const float* values,
size_t count);
774 static MStatus setQuatArray(MObject node, MObject attr,
const double* values,
size_t count);
776 static MStatus setMatrix2x2Array(MObject node, MObject attr,
const float* values,
size_t count);
777 static MStatus setMatrix2x2Array(MObject node, MObject attr,
const double* values,
size_t count);
778 static MStatus setMatrix3x3Array(MObject node, MObject attr,
const float* values,
size_t count);
779 static MStatus setMatrix3x3Array(MObject node, MObject attr,
const double* values,
size_t count);
780 static MStatus setMatrix4x4Array(MObject node, MObject attr,
const float* values,
size_t count);
781 static MStatus setMatrix4x4Array(MObject node, MObject attr,
const double* values,
size_t count);
783 static MStatus setStringArray(MObject node, MObject attr,
const std::string* values,
size_t count);
785 static MStatus setTimeArray(MObject node, MObject attr,
const float* values,
size_t count, MTime::Unit unit);
786 static MStatus setAngleArray(MObject node, MObject attr,
const float* values,
size_t count, MAngle::Unit unit);
787 static MStatus setDistanceArray(MObject node, MObject attr,
const float* values,
size_t count, MDistance::Unit unit);
798 static MStatus
setHalf(MObject node, MObject attr,
const half value)
799 {
return setFloat(node, attr, value); }
806 static MStatus
setFloat(MObject node, MObject attr,
float value);
813 static MStatus
setDouble(MObject node, MObject attr,
double value);
820 static MStatus
setTime(MObject node, MObject attr, MTime value);
827 static MStatus
setDistance(MObject node, MObject attr, MDistance value);
834 static MStatus
setAngle(MObject node, MObject attr, MAngle value);
841 static MStatus
setBool(MObject node, MObject attr,
bool value);
848 static MStatus
setInt8(MObject node, MObject attr, int8_t value);
855 static MStatus
setInt16(MObject node, MObject attr, int16_t value);
862 static MStatus
setInt32(MObject node, MObject attr, int32_t value);
869 static MStatus
setInt64(MObject node, MObject attr, int64_t value);
878 static MStatus
setVec3(MObject node, MObject attr,
float x,
float y,
float z);
887 static MStatus
setVec3(MObject node, MObject attr,
double x,
double y,
double z);
896 static MStatus
setVec3(MObject node, MObject attr, MAngle x, MAngle y, MAngle z);
903 static MStatus
setMatrix2x2(MObject node, MObject attr,
const float* values);
910 static MStatus
setMatrix3x3(MObject node, MObject attr,
const float* values);
917 static MStatus
setMatrix4x4(MObject node, MObject attr,
const float* values);
924 static MStatus
setMatrix4x4(MObject node, MObject attr,
const MFloatMatrix& value);
931 static MStatus
setMatrix2x2(MObject node, MObject attr,
const double* values);
938 static MStatus
setMatrix3x3(MObject node, MObject attr,
const double* values);
945 static MStatus
setMatrix4x4(MObject node, MObject attr,
const double* values);
952 static MStatus
setMatrix4x4(MObject node, MObject attr,
const MMatrix& value);
959 static MStatus
setString(MObject node, MObject attr,
const char* str);
966 static MStatus
setString(MObject node, MObject attr,
const std::string& str);
973 static MStatus
setVec2(MObject node, MObject attr,
const int32_t* xy);
980 static MStatus
setVec2(MObject node, MObject attr,
const float* xy);
987 static MStatus
setVec2(MObject node, MObject attr,
const double* xy);
994 static MStatus
setVec2(MObject node, MObject attr,
const half* xy);
1001 static MStatus
setVec3(MObject node, MObject attr,
const int32_t* xyz);
1008 static MStatus
setVec3(MObject node, MObject attr,
const float* xyz);
1015 static MStatus
setVec3(MObject node, MObject attr,
const double* xyz);
1022 static MStatus
setVec3(MObject node, MObject attr,
const half* xyz);
1029 static MStatus
setVec4(MObject node, MObject attr,
const int32_t* xyzw);
1036 static MStatus
setVec4(MObject node, MObject attr,
const float* xyzw);
1043 static MStatus
setVec4(MObject node, MObject attr,
const double* xyzw);
1050 static MStatus
setVec4(MObject node, MObject attr,
const half* xyzw);
1057 static MStatus
setQuat(MObject node, MObject attr,
const float* xyzw);
1064 static MStatus
setQuat(MObject node, MObject attr,
const double* xyzw);
1071 static MStatus
setQuat(MObject node, MObject attr,
const half* xyzw);
1084 static MStatus
addStringValue(MObject node,
const char* attrName,
const char* stringValue);
1090 MPlug plug(node, attr);
1091 if(!plug || !plug.isArray())
1092 return MS::kFailure;
1093 const uint32_t num = plug.numElements();
1101 MPlug plug(node, attr);
1102 if(!plug || !plug.isArray())
1103 return MS::kFailure;
1104 const uint32_t num = plug.numElements();
1112 MPlug plug(node, attr);
1113 if(!plug || !plug.isArray())
1114 return MS::kFailure;
1115 const uint32_t num = plug.numElements();
1123 MPlug plug(node, attr);
1124 if(!plug || !plug.isArray())
1125 return MS::kFailure;
1126 const uint32_t num = plug.numElements();
1134 MPlug plug(node, attr);
1135 if(!plug || !plug.isArray())
1136 return MS::kFailure;
1137 const uint32_t num = plug.numElements();
1145 MPlug plug(node, attr);
1146 if(!plug || !plug.isArray())
1147 return MS::kFailure;
1148 const uint32_t num = plug.numElements();
1156 MPlug plug(node, attr);
1157 if(!plug || !plug.isArray())
1158 return MS::kFailure;
1159 const uint32_t num = plug.numElements();
1167 return setInt8Array(node, attr, values.data(), values.size());
1173 return setInt16Array(node, attr, values.data(), values.size());
1179 return setInt32Array(node, attr, values.data(), values.size());
1185 return setInt64Array(node, attr, values.data(), values.size());
1191 return setHalfArray(node, attr, values.data(), values.size());
1197 return setFloatArray(node, attr, values.data(), values.size());
static MStatus setBool(MObject node, MObject attr, bool value)
sets a boolean value on the specified node/attribute
static MStatus getVec3(MObject node, MObject attr, int32_t *xyz)
extracts a 3D vector value from the specified node/attribute
static MStatus getDoubleArray(const MObject &node, const MObject &attr, std::vector< double > &values)
retrieve an array of double values from an attribute in Maya
Definition: DgNodeHelper.h:1154
static MStatus getMatrix4x4Array(MObject node, MObject attr, float *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 4x4 floating point matrix array ...
static MStatus setInt32(MObject node, MObject attr, int32_t value)
sets a 32bit integer value on the specified node/attribute
static MStatus setFloatArray(const MObject &node, const MObject &attr, const std::vector< float > &values)
sets all values on a float array attribute on the specified node
Definition: DgNodeHelper.h:1195
static MStatus setDistance(MObject node, MObject attr, MDistance value)
sets a distance value on the specified node/attribute
static MStatus getAngle(MObject node, MObject attr, MAngle &value)
extracts a single angle value from the specified node/attribute
static MStatus setInt32Array(const MObject &node, const MObject &attr, const std::vector< int32_t > &values)
sets all values on a 32bit integer array attribute on the specified node
Definition: DgNodeHelper.h:1177
static MStatus getInt16Array(const MObject &node, const MObject &attr, std::vector< int16_t > &values)
retrieve an array of 16bit integer values from an attribute in Maya
Definition: DgNodeHelper.h:1099
static MStatus setHalf(MObject node, MObject attr, const half value)
sets a half float value on the specified node/attribute
Definition: DgNodeHelper.h:798
static MStatus setString(MObject node, MObject attr, const char *str)
sets a string value on the specified node/attribute
static MStatus getQuat(MObject node, MObject attr, float *xyzw)
extracts a 4D quat value from the specified node/attribute
static MStatus getMatrix3x3(MObject node, MObject attr, float *values)
extracts a 3x3 matrix value from the specified node/attribute (as a float)
static MStatus setMatrix2x2(MObject node, MObject attr, const float *values)
sets a 2x2 matrix value on the specified node/attribute
static MStatus setAngle(MObject node, MObject attr, MAngle value)
sets an angle value on the specified node/attribute
static MStatus setDoubleArray(const MObject &node, const MObject &attr, const std::vector< double > &values)
sets all values on a double array attribute on the specified node
Definition: DgNodeHelper.h:1201
static MStatus getInt64(MObject node, MObject attr, int64_t &value)
extracts a single 64bit integer value from the specified node/attribute
static MStatus getMatrix2x2Array(MObject node, MObject attr, float *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 2x2 floating point matrix array ...
static MStatus getBoolArray(const MObject &node, const MObject &attr, std::vector< bool > &values)
retrieve an array of boolean values from an attribute in Maya
static MStatus getVec2Array(MObject node, MObject attr, half *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 2D half float array ...
static MStatus setInt16(MObject node, MObject attr, int16_t value)
sets a 16bit integer value on the specified node/attribute
static MStatus getMatrix4x4(MObject node, MObject attr, float *values)
extracts a 4x4 matrix value from the specified node/attribute (as a float)
static MStatus setBoolArray(const MObject &node, const MObject &attr, const std::vector< bool > &values)
sets all values on a boolean array attribute on the specified node
static MStatus getFloatArray(const MObject &node, const MObject &attr, std::vector< float > &values)
retrieve an array of float values from an attribute in Maya
Definition: DgNodeHelper.h:1143
static MStatus setVec3(MObject node, MObject attr, float x, float y, float z)
sets a 3D vector value on the specified node/attribute
static MStatus setInt64Array(const MObject &node, const MObject &attr, const std::vector< int64_t > &values)
sets all values on a 64bit integer array attribute on the specified node
Definition: DgNodeHelper.h:1183
static MStatus addStringValue(MObject node, const char *attrName, const char *stringValue)
adds a new strings attribute of the specified name to the specified node, and sets its value...
static MStatus getInt64Array(const MObject &node, const MObject &attr, std::vector< int64_t > &values)
retrieve an array of 64bit integer values from an attribute in Maya
Definition: DgNodeHelper.h:1121
static MStatus getTimeArray(MObject node, MObject attr, float *values, size_t count, MTime::Unit unit)
given MObjects for an attribute on a node, extract the data as an array of time values scale to the s...
static MStatus getAngleArray(MObject node, MObject attr, float *values, size_t count, MAngle::Unit unit)
given MObjects for an attribute on a node, extract the data as an array of angle values scale to the ...
Utility class that provides support for setting/getting attributes.
Definition: DgNodeHelper.h:21
static MStatus setInt8Array(const MObject &node, const MObject &attr, const std::vector< int8_t > &values)
sets all values on a 8bit integer array attribute on the specified node
Definition: DgNodeHelper.h:1165
static MStatus getVec2(MObject node, MObject attr, int32_t *xy)
extracts a 2D vector value from the specified node/attribute
static MStatus getDistanceArray(MObject node, MObject attr, float *values, size_t count, MDistance::Unit unit)
given MObjects for an attribute on a node, extract the data as an array of distance values scale to t...
static MStatus getInt8Array(const MObject &node, const MObject &attr, std::vector< int8_t > &values)
retrieve an array of 8 bit char values from an attribute in Maya
Definition: DgNodeHelper.h:1088
DgNodeHelper()
ctor
Definition: DgNodeHelper.h:26
static MStatus getHalf(MObject node, MObject attr, half &value)
extracts a single half float value from the specified node/attribute
Definition: DgNodeHelper.h:387
static MStatus getInt8(MObject node, MObject attr, int8_t &value)
extracts a single 8bit integer value from the specified node/attribute
static MStatus getHalfArray(const MObject &node, const MObject &attr, std::vector< half > &values)
retrieve an array of float values from an attribute in Maya (converted to halfs)
Definition: DgNodeHelper.h:1132
static MStatus setMatrix4x4(MObject node, MObject attr, const float *values)
sets a 4x4 matrix value on the specified node/attribute
static MStatus getStringArray(MObject node, MObject attr, std::string *values, size_t count)
given MObjects for an attribute on a node, extract the data as an array of string values ...
static MStatus getBool(MObject node, MObject attr, bool &value)
extracts a single boolean value from the specified node/attribute
static MStatus getDouble(MObject node, MObject attr, double &value)
extracts a single double value from the specified node/attribute
static MStatus getVec3Array(MObject node, MObject attr, half *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 3D half float array ...
static MStatus setVec4(MObject node, MObject attr, const int32_t *xyzw)
sets a 4D vector value on the specified node/attribute
static MStatus getTime(MObject node, MObject attr, MTime &value)
extracts a single time value from the specified node/attribute
virtual ~DgNodeHelper()
dtor
Definition: DgNodeHelper.h:29
static MStatus setDouble(MObject node, MObject attr, double value)
sets a double value on the specified node/attribute
static MStatus setInt64(MObject node, MObject attr, int64_t value)
sets a 64bit integer value on the specified node/attribute
static MStatus setInt8(MObject node, MObject attr, int8_t value)
sets a 8bit integer value on the specified node/attribute
static MStatus getString(MObject node, MObject attr, std::string &str)
extracts a string value from the specified node/attribute
static MStatus getVec4Array(MObject node, MObject attr, half *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 4D half float array ...
static MStatus setInt16Array(const MObject &node, const MObject &attr, const std::vector< int16_t > &values)
sets all values on a 16bit integer array attribute on the specified node
Definition: DgNodeHelper.h:1171
static MStatus setVec2(MObject node, MObject attr, const int32_t *xy)
sets a 2D vector value on the specified node/attribute
static MStatus getQuatArray(MObject node, MObject attr, half *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 4D half float array ...
static MStatus getMatrix3x3Array(MObject node, MObject attr, float *values, size_t count)
given MObjects for an attribute on a node, extract the data as a 3x3 floating point matrix array ...
static MStatus setMatrix3x3(MObject node, MObject attr, const float *values)
sets a 3x3 matrix value on the specified node/attribute
static MStatus setFloat(MObject node, MObject attr, float value)
sets a float value on the specified node/attribute
static MStatus getDistance(MObject node, MObject attr, MDistance &value)
extracts a single distance value from the specified node/attribute
static MStatus getInt32Array(const MObject &node, const MObject &attr, std::vector< int32_t > &values)
retrieve an array of 32bit integer values from an attribute in Maya
Definition: DgNodeHelper.h:1110
static MStatus getMatrix2x2(MObject node, MObject attr, float *values)
extracts a 2x2 matrix value from the specified node/attribute (as a float)
static MStatus setHalfArray(const MObject &node, const MObject &attr, const std::vector< half > &values)
sets all values on a float array attribute on the specified node (but convert from half float data) ...
Definition: DgNodeHelper.h:1189
static MStatus getFloat(MObject node, MObject attr, float &value)
extracts a single float value from the specified node/attribute
static MStatus getVec4(MObject node, MObject attr, int32_t *xyzw)
extracts a 4D vector value from the specified node/attribute
static MStatus setQuat(MObject node, MObject attr, const float *xyzw)
sets a 4D quat value on the specified node/attribute
static MStatus setTime(MObject node, MObject attr, MTime value)
sets a time value on the specified node/attribute
static MStatus getInt16(MObject node, MObject attr, int16_t &value)
extracts a single 16 bit integer value from the specified node/attribute
static MStatus getInt32(MObject node, MObject attr, int32_t &value)
extracts a single 32bit integer value from the specified node/attribute