Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 // 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;
 }
Ejemplo n.º 5
0
        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;
        }