AwVector poleVectorFromHandle(MDagPath handlePath) { MFnIkHandle handleFn = new MFnIkHandle(handlePath); MPlug pvxPlug = handleFn.findPlug("pvx"); MPlug pvyPlug = handleFn.findPlug("pvy"); MPlug pvzPlug = handleFn.findPlug("pvz"); double pvxValue, pvyValue, pvzValue; pvxValue = pvyValue = pvzValue = 0; pvxPlug.getValue(pvxValue); pvyPlug.getValue(pvyValue); pvzPlug.getValue(pvzValue); AwVector poleVector = new AwVector(pvxValue, pvyValue, pvzValue); return(poleVector); }
double twistFromHandle(MDagPath handlePath) // This method returns the twist of the IK handle. // { MFnIkHandle handleFn = new MFnIkHandle(handlePath); MPlug twistPlug = handleFn.findPlug("twist"); double twistValue = 0.0; twistPlug.getValue(twistValue); return(twistValue); }
AwVector poleVectorFromHandle( MDagPath handlePath) { MFnIkHandle handleFn = new MFnIkHandle(handlePath); MPlug pvxPlug = handleFn.findPlug("pvx"); MPlug pvyPlug = handleFn.findPlug("pvy"); MPlug pvzPlug = handleFn.findPlug("pvz"); double pvxValue, pvyValue, pvzValue; pvxValue=pvyValue=pvzValue=0; pvxPlug.getValue(pvxValue); pvyPlug.getValue(pvyValue); pvzPlug.getValue(pvzValue); AwVector poleVector = new AwVector(pvxValue, pvyValue, pvzValue); return poleVector; }
// This method returns the twist of the IK handle. // double twistFromHandle(MDagPath handlePath) { MFnIkHandle handleFn = new MFnIkHandle(handlePath); MPlug twistPlug = handleFn.findPlug("twist"); double twistValue = 0.0; twistPlug.getValue(twistValue); return twistValue; }
double twistFromHandle(MDagPath handlePath) // This method returns the twist of the IK handle. // { MFnIkHandle handleFn = new MFnIkHandle(handlePath); MPlug twistPlug = handleFn.findPlug("twist"); double twistValue = 0.0; twistPlug.getValue(twistValue); return twistValue; }