Graphics

 View Only
  • 1.  control camera position / rotation via script

    Posted 01-26-2016 17:44
    hi, I like to control the camera via script. I have the following data from After Effects:

    at time 1 L3DTrackerCame.pos = [-0.01932518304516,-0.9579933977044,0.10622924800086]
    at time 1 L3DTrackerCame.rotation.x_rotation = 4.69539629050705
    at time 1 L3DTrackerCame.rotation.z_rotation = 0.81467303198274
    at time 1 L3DTrackerCame.rotation.y_rotation = -0.29471230500303
    at time 2 L3DTrackerCame.pos = [-0.01923553298573,-0.95464044184327,0.10636535485349]
    at time 2 L3DTrackerCame.rotation.x_rotation = 4.67211621444075
    at time 2 L3DTrackerCame.rotation.z_rotation = 0.81812699384447
    at time 2 L3DTrackerCame.rotation.y_rotation = -0.29018550620398
    at time 3 L3DTrackerCame.pos = [-0.01936286487987,-0.95116085192246,0.10665564937658]
    at time 3 L3DTrackerCame.rotation.x_rotation = 4.64142835319397
    at time 3 L3DTrackerCame.rotation.z_rotation = 0.82292713158172
    at time 3 L3DTrackerCame.rotation.y_rotation = -0.29077625523551
    at time 4 L3DTrackerCame.pos = [-0.01935767476957,-0.94757476531679,0.10689914439356]
    at time 4 L3DTrackerCame.rotation.x_rotation = 4.61438326425267
    at time 4 L3DTrackerCame.rotation.z_rotation = 0.82525734858706
    at time 4 L3DTrackerCame.rotation.y_rotation = -0.28989971183343
    at time 5 L3DTrackerCame.pos = [-0.01930092021958,-0.94389082764639,0.10703057774821]
    at time 5 L3DTrackerCame.rotation.x_rotation = 4.59140005656412
    at time 5 L3DTrackerCame.rotation.z_rotation = 0.83184006823883
    at time 5 L3DTrackerCame.rotation.y_rotation = -0.27899367276877
    .....

    Do you guys know an easy way to input the data into a camera Xpression? The end animation will be 30 seconds, so thats a lot of frames to do a manual input.


  • 2.  RE: control camera position / rotation via script

    Posted 01-27-2016 05:40
    Search the forum for this thread: "XPression - Key Graph Editor - Bezier Curve Manipulation"...
    It explains how to import keyframe data from After Effects. You can import the keyframe data directly to the camera track.


    #XPression