Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions a question about variables

  • a question about variables

    Posted by Assaf Goldlust on January 12, 2018 at 11:25 am

    so im trying to learn about expression and about how they work from the book “after effect expressions” by marcus geduld (2009)
    and when he talked he said something i have hard time understanding:

    he was using the expression:
    controller=transform.opacity;
    controller

    and applied it to rotation
    and he said’s that whats matter is the last statement.
    that the first statement
    (controller=transform.opacity;)
    is only storing information from the opacity property.
    but he doesn’t do anything else without the second statement (controller in this case)
    that tells after effect to use it information.

    the confusing part is: when i erase the second statement. and stay only with the first one the rotation is still responding to the changes i do in opacity, wasent he sop post only to restore information and not really show it to me?

    whats difference the second statement is doing?!

    Dan Ebberts replied 8 years, 4 months ago 3 Members · 7 Replies
  • 7 Replies
  • Steve Sierra

    January 12, 2018 at 12:49 pm

    Hi,

    You’re right, it does still work…

    On the other hand, if you write :
    “var Controller = transform.opacity”, then you need to write “Controller” after it or it won’t work, illustrating Marcus Geduld’s point.

    I guess Ae expressions were created to do that, not sur it works in a script ?

    Hope this helps a bit…

    Cheers !

  • Assaf Goldlust

    January 12, 2018 at 1:12 pm

    I guess Ae expressions were created to do that, not sur it works in a script ?

    not trying to be rude but that line had me wonder if you are sure about what your saying.
    or simply making guesstimations

  • Dan Ebberts

    January 12, 2018 at 2:16 pm

    An expression just applies the value of the last statement executed to the property hosting the expression. So, these three expressions applied to the rotation property have the exact same result:

    controller=transform.opacity;
    controller

    or,

    controller=transform.opacity;

    or,

    transform.opacity;

    Dan

  • Assaf Goldlust

    January 13, 2018 at 11:19 am

    An expression just applies the value of the last statement executed to the property hosting the expression. So, these three expressions applied to the rotation property have the exact same result:

    controller=transform.opacity;
    controller

    or,

    controller=transform.opacity;

    or,

    transform.opacity;

    Dan

    its kind of sounds tome like its at odds with what he saids.

    im uploading the part were he speaks about it. maybe it would help understanding becuse if to be honest im not sure i explained it right.
    [IMG]https://i63.tinypic.com/1zldh7a.png%5B/IMG%5D

    [IMG]https://i65.tinypic.com/2640ufs.png%5B/IMG%5D

  • Dan Ebberts

    January 13, 2018 at 3:35 pm

    >its kind of sounds to me like its at odds with what he saids.

    Yup.

    Did you try it? I think you’ll find it’s exactly as I described.

    Dan

  • Assaf Goldlust

    January 15, 2018 at 9:36 am

    yes i did this is why im cofused about it. what did he ment when he was saying that the second statement is the one after effect use to controll the expression.

    and that the first statement only tells the computer to store a variable in a value?

    P.S im posting the screenshots becuse i did wrong previusly

  • Dan Ebberts

    January 15, 2018 at 5:23 pm

    This expression:

    controller = transform.opacity;

    does, in fact, produce a result.

    Dan

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