Can I create a custom joint cluster node?If yes than what would be the attribute type for MFn::kJoint?
I want to give input plug as time for animation and output as joints.
I wonder what would be the attribute type for MFn::kJoint as "output" of the node?
MStatus ANIM_JOINT_01node::initialize()
{
MFnUnitAttribute unitAttr; //for time attribute
MFnEnumAttribute EnumAttr;
MFnTypedAttribute typedAttr; //for MFnData::kMesh output
MFnNumericAttribute numAttr;
MStatus returnStatus;
ANIM_JOINT_01node::time=unitAttr.create(
"time","tm",MFnUnitAttribute::kTime,
0.0, &returnStatus);
ANIM_JOINT_01node::output=fn.create(
"output", "out",MFn::kJoint,&returnStatus);
/*this code is very wrong. please tell me what should be the attribute type for joint or jointcluster for a custom node where I will give input as time and animate a leg with several joints, as a node?*/
}