ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Using a layer's scale to determine another layer's position.

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nick Vaka
Using a layer's scale to determine another layer's position.
on Oct 4, 2013 at 3:07:11 pm

Working on an animated blowfish in After Effects and wanted to see if someone had a quick and dirty solution for parenting his spikes' position to his toro's scale. Basically, as his body puffs out I'd like the spikes to stay near the edge of it without having to keyframe the position of each, while maintaining their original size (since simply parenting would scale the spikes up as well.

I know there's probably an expression out there, but I haven't the foggiest on where.

Thanks in advance!

Nick

Nick Vaka
Motion Graphics & Animation
http://www.nickvaka.com


Return to posts index


Anders Hattne
Re: Using a layer's scale to determine another layer's position.
on Oct 4, 2013 at 8:27:17 pm

Depending on the look of the blowfish I would use nulls parented to the blowfish's body, then use the compTo expression to tie the spikes to the nulls. I made a quick experiment to try it out.. and thought it looked better when I added a bit of increase of scale to the spikes.
I'll just attach my li'l project for you!
6602_blowfish.aep.zip

Maybe there is an expression free way of doing this as well?

http://www.ardillamedia.com


Return to posts index

Nick Vaka
Re: Using a layer's scale to determine another layer's position.
on Oct 4, 2013 at 9:16:34 pm

Thanks for this! I might end up using the expression, but I've got a few other applications for this thing.

Thank you for your help!

Nick Vaka
Motion Graphics & Animation
http://www.nickvaka.com


Return to posts index


Anders Hattne
Re: Using a layer's scale to determine another layer's position.
on Oct 5, 2013 at 8:56:19 am

When I woke up this morning, I had a simpler solution for this!
Delete the nulls. *You noticed my layers where all different colours? That way I can click the colour, and select label group, delete all nulls in one go.. or select all spikes etc!)

Parent spikes to body and apply this expression to the scale

sub=thisComp.layer("body").transform.scale-[100, 100];
value-sub

http://www.ardillamedia.com


Return to posts index

Anders Hattne
Re: Using a layer's scale to determine another layer's position.
on Oct 5, 2013 at 9:55:53 am

Just realised that doesn't quite work. But Kevin Camp had a similar idea that probably works. Gonna check that out!

http://www.ardillamedia.com


Return to posts index

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