Skip to main content
Participant
August 8, 2012
Question

Offsetting time and position of several layers relative to preceding layer

  • August 8, 2012
  • 1 reply
  • 19842 views

Hello -

Pardon the newbie questions, but I've keyframed 'Black Solid' moving along the x axis and basically would like to duplicate the layer (perhaps with a new color) several times so that each 'new layer' follows the previous layer and offsets itself a certain amount of pixels...say 20px for example.

I found a simple expression that I applied to the first dup'd layer and it works fine but I can't figure out where to tell it to offset 20px to the left of the main layer.

thisComp.layer("Black Solid 1").transform.position.valueAtTime(time -.1);

I suppose I'm trying for a cascading effect + offset.

Thanks!

gj

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
August 8, 2012

Like this:

thisComp.layer("Black Solid 1").transform.position.valueAtTime(time -.1) - [20,0];

Dan

Participant
August 9, 2012

Easy enough...for you that is! Thanks Dan!

Cheers,

gj

DrStrik9
Inspiring
October 23, 2012

This doesn't seem to work for Illustrator paths converted to shapes. AE sends error: "couldn't find layer named 'shape-1'" -- this seems to be because AE doesn't think of converted shapes as "layers." -- ??

Is there an expression workaround?