ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

duplicate solid and move in 'y' position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jose Arce
duplicate solid and move in 'y' position
on Jul 5, 2018 at 10:04:58 pm

Hi.

I just want to know if with a expression can move a duplicate solid in y position from original layer.

I need to move several layer from my first layer i.e. layer one is y postion 540, layer 2 530, layer 3...

Thanks


Return to posts index

Scott McGee
Re: duplicate solid and move in 'y' position
on Jul 6, 2018 at 7:36:33 am

The below link give you the feature so that your first one that it's basing it's position off doesn't flag an error as it doesn't have a index to refer to. The everything after that (Duplications) will - 10 on the y axis and stay linear on the x.

try{
x = thisComp.layer(index+1).transform.position[0];
y = thisComp.layer(index+1).transform.position[1] - 10;
}catch(err){
x = value[0];
y = value[1];
}
[x,y]


Return to posts index

Jose Arce
Re: duplicate solid and move in 'y' position
on Jul 6, 2018 at 10:12:08 pm

Thanks, work great.


Return to posts index

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