Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Connect camera position to a marker

  • Connect camera position to a marker

    Posted by Ciji James on October 17, 2020 at 6:09 pm

    I’ve set three keyframes for my camera in my ae comp and I’ve marked them with markers. How can I recall the keyframes of the cam with expressions by referring to the markers?

    Ciji James replied 5 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Stephen Dixon

    October 18, 2020 at 11:59 pm

    To access a position keyframe of the camera for example, at the first key:

    thisComp.layer("Camera 1").transform.position.valueAtTime(thisComp.markerKey(n).time)

    Markers can be accessed by number (the number is the order that they appear, not the number it is assigned to, which is actually its name), or by name, e.g.

    thisComp.layer("Camera 1").transform.position.valueAtTime(thisComp.markerKey("my marker").time) //or
    thisComp.layer("Camera 1").transform.position.valueAtTime(thisComp.markerKey("1").time)

    docs here

  • Ciji James

    October 19, 2020 at 8:53 am

    Thanks a lot stephen… am getting to understand expressions…

    I have three different key positions for my camera, which I have marked as blue, green & red to say. how can I call those values for my camera when required by just putting markers, rather than not adding keyframes… Thanks a lot for your reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy