Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects accessing camera expression

  • accessing camera expression

    Posted by Daniel Tegeland on May 12, 2011 at 7:22 am

    Hi!

    I have used an expresion line to acces the active camera heavily(below). I you would like to use a specific camera instead of the active one. How would you go about that? thanks

    thisComp.activeCamera.toWorld

    Walter Soyka replied 15 years ago 3 Members · 3 Replies
  • 3 Replies
  • Tudor “ted” jelescu

    May 12, 2011 at 7:44 am

    This post should be in the expressions forum – better chances to get a quick answer.
    https://forums.creativecow.net/adobe_after_effects_expressions

    Tudor “Ted” Jelescu
    Senior VFX Artist

  • Daniel Tegeland

    May 12, 2011 at 7:51 am

    thanks!

  • Walter Soyka

    May 12, 2011 at 11:53 am

    Cameras work just like layers.

    Instead of using thisComp.activeCamera, you can pick-whip another camera layer, or directly enter something like this:

    thisComp.layer("Camera 2")

    If you refer to the camera more than once in your expresion, you can clean up your code a bit as follows:

    c = thisComp.layer("Camera 2");
    c.toWorld([0,0,0]);

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

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