Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Global variables

  • Posted by Alberto Forlai on March 12, 2007 at 10:54 pm

    Hi, I’m just a beginner for AE scripting. and now I have this problem.
    To move a camera; CAM1, on my composition: COMP1 I use a math. formula, in this formula I have a variable: MxTime= 3;(after 3 seconds do this ….) it works fine.
    The problem is, in the same project I have an other composition: COMP2 in which I need the know the value of var MxTime of COMP1.
    I’m not able to this, any idea?

    Thanks a lot

    Filip Vandueren replied 19 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    March 13, 2007 at 12:44 am

    Create an expression control slider, give that the value 3 and reference to that slider from any expression that needs the value.

    This will also work if you add an expression (or keyframes) to the slider, every ‘linking’ expression will see the calculated value.

    That’s the only crude workaround to simulate globals.
    That’s to say: read-only globals:

    You cannot set the value of that slider from any other expression, only directly from the slider or it’s own expression.

    I hope that helps.

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