QUOTE(ruddiger52 @ 07/01/08, 07:41 PM) [snapback]287738[/snapback]
The two parent contraint method is just too complicated to work with.
I dont feel it is thik so, its infitely easier than what your doing. What you do is make one camera that follows the car and one that is statiionary, animate them as normal. Then make a third called blend cam and then just blend it whenever you need to thisway whay you have is 3 wievports and all your workflow is the same and you have a free blend.
Eg think of the ball as car.
CODE
file -f -new;
sphere;
setNamedPanelLayout "Four View";
camera -centerOfInterest 5 -focalLength 35 -n lookAtCar;
lookThroughModelPanel lookAtCar1 modelPanel1;
setAttr "lookAtCar1.translateX" 6.752;
setAttr "lookAtCar1.translateY" 4.052;
setAttr "lookAtCar1.translateZ" -0.162;
setAttr "lookAtCar1.rotateX" -27.6;
setAttr "lookAtCar1.rotateY" 91.2;
setAttr "lookAtCar1.rotateZ" 0;
parent lookAtCar1 nurbsSphere1;
camera -centerOfInterest 5 -focalLength 35 -n stationaryCam;
setAttr "stationaryCam1.translateX" 1.083;
setAttr "stationaryCam1.translateY" 6.058;
setAttr "stationaryCam1.translateZ" 7.89;
setAttr "stationaryCam1.rotateX" -31.051;
setAttr "stationaryCam1.rotateY" -40.535;
setAttr "stationaryCam1.rotateZ" 8.074;
SetKey;
lookThroughSelected 0 modelPanel3;
playbackOptions -min 0 -max 100;
select -r nurbsSphere1;
currentTime 0;
move -r 13.56885 0 0;
SetKey;
currentTime 100;
move -r -26.275164 0 0;
SetKey;
// now blend cam (never animate the blend
// cam itself jsut one of the other cams you
// have freedom of doing so in other views.
camera -centerOfInterest 5 -focalLength 35 -n blendCam;
lookThroughModelPanel blendCam1 modelPanel2;
parentConstraint -weight 1 stationaryCam1 blendCam1;
parentConstraint -weight 0 lookAtCar1 blendCam1;
//ease animation
expression -s ("blendCam1_parentConstraint1.lookAtCar1W1="+
"1-blendCam1_parentConstraint1.stationaryCam1W0")
-o blendCam1_parentConstraint1 -ae 1 -uc all;
currentTime 52;
setAttr "stationaryCam1.translateX" 6.9;
setAttr "stationaryCam1.translateY" 6.732;
setAttr "stationaryCam1.translateZ" 7.745;
setAttr "stationaryCam1.rotateX" -28.652;
setAttr "stationaryCam1.rotateY" 44.854;
setAttr "stationaryCam1.rotateZ" 8.66;
setKeyframe stationaryCam1;
setKeyframe "blendCam1_parentConstraint1.w0";
currentTime 74;
setAttr "blendCam1_parentConstraint1.stationaryCam1W0" 0;
setKeyframe "blendCam1_parentConstraint1.w0";
selectKey -add -k -t 1 -t 52 stationaryCam1_visibility;
selectKey -add -k -t 1 -t 52 stationaryCam1_translateX;
selectKey -add -k -t 1 -t 52 stationaryCam1_translateY;
selectKey -add -k -t 1 -t 52 stationaryCam1_translateZ;
selectKey -add -k -t 1 -t 52 stationaryCam1_rotateX;
selectKey -add -k -t 1 -t 52 stationaryCam1_rotateY;
selectKey -add -k -t 1 -t 52 stationaryCam1_rotateZ;
selectKey -add -k -t 1 -t 52 stationaryCam1_scaleX;
selectKey -add -k -t 1 -t 52 stationaryCam1_scaleY;
selectKey -add -k -t 1 -t 52 stationaryCam1_scaleZ;
setInfinity -poi linear;
selectKey -add -k -t 74 blendCam1_parentConstraint1_stationaryCam1W0;
keyTangent -itt flat -ott flat;
Ok the start key could be tweaked a bit but you get teh poit after all i did this in less than 2 minutes. ignore the blebd cam when you do something.