23 MayaBlendDesc(MFnBlendShapeDeformer &deformer,
int weight_index) :
24 _deformer(deformer.object()),
25 _weight_index(weight_index)
27 std::ostringstream strm;
28 strm << _deformer.name().asChar() <<
"." << _weight_index;
47 MStatus status = _deformer.setWeight(_weight_index, value);
50 <<
"Unable to set slider " << get_name() <<
"\n";
60 return _deformer.weight(_weight_index);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_slider(PN_stdfloat value)
Moves the Maya slider associated with this blend shape to the indicated value.
PN_stdfloat get_slider() const
Returns the current position of the Maya slider associated with this blend shape.
TypeHandle is the identifier used to differentiate C++ class types.