Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ValueAtTime on Scale property

  • ValueAtTime on Scale property

    Posted by Jamil Yamani on January 21, 2012 at 11:18 am

    HI all

    I have been using Dan Ebberts code modified for Colour and various other things with great success.

    I have tried applying it to a Scale property and it did not work. The scale value once the expression is turned on remains at 100%, 100% despite the keyframes I have applied.

    Thanks in advance
    Jamil

    delay = 6;
    d = delay*thisComp.frameDuration*(index - 1);
    thisComp.layer(1).transform.scale.valueAtTime(time - d)

    The Electric Canvas
    Large Format Projection Specialists
    Sydney, Australia

    Jamil Yamani replied 14 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Ben G unguren

    January 21, 2012 at 3:18 pm

    Scale is multi-dimensional, so you need to produce 2 or 3 numbers (3 if the 3D switch is enabled) instead of 1.

    It’s easy enough to do; just assign a variable to the last line:

    a = thisComp.layer(1).transform.scale.valueAtTime(time - d)

    Then make your answer apply to X and Y with the following:

    [a,a]

    Or, if it’s 3D:

    [a,a,a]

    Ben Unguren
    Motion Graphics & Editing
    http://www.mostlydocumentary.com

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Dan Ebberts

    January 21, 2012 at 4:39 pm

    Your expression should work fine. My guess is that maybe layer 1 is not the one with the keyframes.

    Dan

  • Jamil Yamani

    January 21, 2012 at 6:31 pm

    you are very right, its all working now.

    thanks very much to all of you

    jamil

    The Electric Canvas
    Large Format Projection Specialists
    Sydney, Australia

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