Activity › Forums › Adobe After Effects › Scaling depending on position
-
Scaling depending on position
Posted by Phongo on June 1, 2007 at 2:13 pmHey there,
ok here is the setup – I have 100’s of images that are all animating on from right to left. I need to scale then up and down depending on what part of the screen they are on. I would also like to be able to animate the point at which all these images are at maximum height and width.
I was thinking of adding a null object with some expression controls that change the scaling? or maybe a completely different approach? I am pretty new to all this so any pointers would be great!
Thanks
JPhongo replied 19 years, 2 months ago 4 Members · 8 Replies -
8 Replies
-
Steve Roberts
June 1, 2007 at 3:21 pmYou could use Particle Playground, shooting the images out of a “cannon”, and using a property mapper to enlarge the images as they pass over a certain point.
The property mapper would be a radial gradient (ramp) whose center moves around the screen as you see fit. It needs to be a comp within the main comp. You’ll need two windows to see as you animate the ramp center. Fun, huh?
There should be tuts on the COW.
Anybody else?
-
Dan Ebberts
June 1, 2007 at 5:08 pmYou could undoubtedly do this with expressions, but you need to define your requirements a little tighter. To create the appropriate expression, you need to be able to say exactly how the layers respond to where they are and how that is affected by the animating max scale point.
Dan
-
Kevin Camp
June 1, 2007 at 7:19 pmi’m just curious dan, but when i read this post i thought of your proximity detection script…
do you think applying a similar script to the scale of the images, but linking the proximity to a single (invisible) layer (i think it would need to be a layer to get a size property…) would work? then that invisible layer would be used as a pointer to enlarge specifc images.
Kevin Camp
Designer – KCPQ, KMYQ & KRCW -
Phongo
June 1, 2007 at 11:09 pmI need the layers to reach 100% at the point they reach the x value of the null object and scale down proportionate to the x distance from the null object. the minimun scale would be like 5%.
It would be great if I could setup some sliders to have some more fine control. I dunno, maybe it could be as easy as linking the x value of the null object to the scale property with some expression.
Thanks
J -
Dan Ebberts
June 2, 2007 at 2:39 amSure. You could use a guide layer for the pointer so you could see it while you drag it around, but it wouldn’t render. The expression could be pretty simple – something like this:
maxScale = 150;
maxDist = 50;
pointer = thisComp.layer(“pointer”);
d = length(transform.position,pointer.transform.position);
ease(d,0,maxDist,[maxScale,maxScale],value)Dan
-
Dan Ebberts
June 2, 2007 at 2:29 pmLike this maybe:
maxScale = 100;
minScale = 5;
minScaleDist = 100;
pointer = thisComp.layer(“pointer”);
d = Math.abs(pointer.transform.position[0] – transform.position[0]);
ease(d,0,minScaleDist,[maxScale,maxScale],[minScale,minScale])Dan
-
Phongo
June 10, 2007 at 7:47 amjust one other question. As you can imagine I have 100’s of these images and suppose I wanted to be able to change one of those variables. Could i set it up so that i could edit the script in one place and have it apply to all those layers?
Thanks again
J
Reply to this Discussion! Login or Sign Up