Please forgive me if this is not the correct forum for this topic. I'm not sure if this is a 3D or post-production problem.
I've been racking my brain for weeks on how to get a Maya script of a camera from the 3D tracker Voodoo into AE production. I've narrowed down the problem to either the way Voodoo writes the script or AE interprets it - or both. I know the tracking is good because the Voodoo track imports fine into Max using maxscript. After scanning the net for hours and hours using mutiple keyword phrases, I have yet to come up with anything that helps, so I'm putting this into the public brain for suggestions.
The tracking is done on HamillianActor's "Indy" footage, which is 720x480 D1 NTSC. Even though I've tracked on that res and half res, AE is importing the Mayascript as 320x240 25fps. I've changed the comp settings to D1 NTSC (720x480 29.97), but it doesn't matter - any AE 3D planes still float around. Here is what the script says about those parameters:
CODE
setAttr ".w" 360;
setAttr ".h" 240;
and
CODE
"playbackOptions -min 0 -max 204 -animationStartTime 0 -animationEndTime 204 -fps 25;");
I've changed the "-fps 25" to 30 and 29.97 with no success - AE still reads it as 25. Here is the script with the variable declarion and setup. I've removed all the translation data because it is irrelevant.
CODE
// USAGE: import this maya script file into maya
// use the 'VoodooCam' for rendering your scene
// use the locator object 'voodoo_scene' to rotate, translate and scale the scene
requires maya "1.0";
currentUnit -l millimeter -a degree -t pal;
playbackOptions -min 0 -max 204 -animationStartTime 0 -animationEndTime 204;
// the five next lines set global render attributs
select -ne defaultResolution;
setAttr ".w" 360;
setAttr ".h" 240;
setAttr ".dar" 1.35;
setAttr ".ldar" yes;
// the locator object 'voodoo_scene' can be used to translate, rotate and scale the scene
createNode transform -n "voodoo_scene";
setAttr ".s" -type "double3" 1.0 1.0 1.0;
createNode locator -n "voodoo_scene_shape" -p "voodoo_scene";
setAttr -k off ".v";
// the camera and its animCurve
createNode transform -n "VoodooCam" -p "voodoo_scene";
setAttr ".ro" 2;
setAttr ".s" -type "double3" 0.4 0.4 0.4;
createNode camera -n "VoodooCam_Shape" -p "VoodooCam";
setAttr -k off ".v";
setAttr ".cap" -type "double2" 0.127559 0.0944882;
setAttr ".ff" 0;
setAttr ".imn" -type "string" "VoodooCam";
setAttr ".den" -type "string" "VoodooCam_depth";
setAttr ".man" -type "string" "VoodooCam_mask";
createNode animCurveTU -n "VoodooCam_focalLength";
setAttr -s 205 ".ktv[0:204]" 0 ; //edited for brevity
createNode animCurveTL -n "VoodooCam_translateX";
setAttr -s 205 ".ktv[0:204]" 0 ; //edited for brevity
createNode animCurveTL -n "VoodooCam_translateY";
setAttr -s 205 ".ktv[0:204]" 0; //edited for brevity
createNode animCurveTL -n "VoodooCam_translateZ";
setAttr -s 205 ".ktv[0:204]" 0; //edited for brevity
createNode animCurveTA -n "VoodooCam_rotateX";
setAttr -s 205 ".ktv[0:204]" 0; //edited for brevity
createNode animCurveTA -n "VoodooCam_rotateY";
setAttr -s 205 ".ktv[0:204]" 0; //edited for brevity
createNode animCurveTA -n "VoodooCam_rotateZ";
setAttr -s 205 ".ktv[0:204]" 0; //edited for brevity
connectAttr "VoodooCam_translateX.o" "VoodooCam.tx";
connectAttr "VoodooCam_translateY.o" "VoodooCam.ty";
connectAttr "VoodooCam_translateZ.o" "VoodooCam.tz";
connectAttr "VoodooCam_rotateX.o" "VoodooCam.rx";
connectAttr "VoodooCam_rotateY.o" "VoodooCam.ry";
connectAttr "VoodooCam_rotateZ.o" "VoodooCam.rz";
connectAttr "VoodooCam_focalLength.o" "VoodooCam_Shape.fl";
createNode script -n "animationScriptNode";
setAttr ".a" -type "string" (
"playbackOptions -min 0 -max 204 -animationStartTime 0 -animationEndTime 204 -fps 25;");
select -ne :time1;
setAttr ".o" 0;
// 3D feature points
createNode transform -n "auto_0" -p "voodoo_scene";
setAttr ".t" -type "double3" 0.0060129 0.0293503 -0.528665;
setAttr ".s" -type "double3" 0.05 0.05 0.05;
createNode locator -n "auto_0Shape" -p "auto_0";
setAttr -k off ".v";
etc