FORUMS: list search recent posts

ValueAtTime on Scale property

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jamil Yamani
ValueAtTime on Scale property
on Jan 21, 2012 at 11:18:16 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


Return to posts index

ben g unguren
Re: ValueAtTime on Scale property
on Jan 21, 2012 at 3:18:24 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


Return to posts index

Dan Ebberts
Re: ValueAtTime on Scale property
on Jan 21, 2012 at 4:39:41 pm

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

Dan



Return to posts index


Jamil Yamani
Re: ValueAtTime on Scale property
on Jan 21, 2012 at 6:31:25 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]