예제 #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);
        }
예제 #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);
        }
예제 #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;
 }
예제 #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;
 }
예제 #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;
        }