View My Website
My Recent Posts: Re: random expression executed once by Dan Ebberts on Nov 5, 2009 at 2:47:27 pm
Re: Loading an expression with a script by Dan Ebberts on Nov 5, 2009 at 12:06:25 am
Re: Loading an expression with a script by Dan Ebberts on Nov 4, 2009 at 11:25:22 pm
Re: Z Position Optical Illusion HELP! by Dan Ebberts on Nov 3, 2009 at 10:43:39 pm
Re: Random Scale Multiple Layers by Dan Ebberts on Nov 3, 2009 at 7:55:26 pm
Re: Random Scale Multiple Layers by Dan Ebberts on Nov 3, 2009 at 7:02:57 pm
Re: accumulation by Dan Ebberts on Nov 2, 2009 at 3:59:27 pm
Re: accumulation by Dan Ebberts on Oct 31, 2009 at 8:14:32 pm
Re: Z Position Optical Illusion HELP! by Dan Ebberts on Oct 30, 2009 at 9:44:47 pm
Re: Slider to control time remapping by Dan Ebberts on Oct 30, 2009 at 1:37:33 am
Re: Need expression to animate slider between integers and hold for specific duration by Dan Ebberts on Oct 29, 2009 at 9:18:04 pm
Re: scale linked to Z position by Dan Ebberts on Oct 29, 2009 at 8:20:49 pm
Re: Child-Parent linking - how to avoid inheriting rotation? by Dan Ebberts on Oct 28, 2009 at 9:18:58 pm
Re: random timeline marker by Dan Ebberts on Oct 28, 2009 at 2:55:50 pm
Re: radnom timeline marker by Dan Ebberts on Oct 27, 2009 at 4:04:08 pm
Re: time&expression by Dan Ebberts on Oct 27, 2009 at 3:51:34 pm
Re: Pre-composed Expression by Dan Ebberts on Oct 26, 2009 at 11:03:39 pm
Re: radnom timeline marker by Dan Ebberts on Oct 26, 2009 at 1:51:15 pm
Re: clock second hand ticking by Dan Ebberts on Oct 23, 2009 at 11:13:15 pm
Re: slider scale expression help! by Dan Ebberts on Oct 23, 2009 at 7:16:52 pm
My Tagged PostsRe: rescaling numbers by Dan Ebberts on Aug 27, 2009 at 2:54:25 pm in the Adobe After Effects Expressions Forum If there aren't any parents involved, it could be as simple as this:
p1 = thisComp.layer("layer 1").transform.position;
p2 = thisComp.layer("layer 2").transform.position;
linear(length(p1,p2),1064,2748,0,50);
Dan...first tagged as a 5 COW post by Rob Dahl Re: Change Position relative to a different layer by Dan Ebberts on Aug 6, 2009 at 2:35:10 am in the Adobe After Effects Expressions Forum A Slider control and a position expression like this should do the trick:
s = effect("Slider Control")("Slider");
startY = 100;
endY = 400;
y = linear(s,0,100,startY,endY);
[value[0],y]
You may want to modify it so that the slider is on a control null and both of your... Re: Alternate between two values x-times per second. by Dan Ebberts on Jul 31, 2009 at 8:21:50 am in the Adobe After Effects Expressions Forum I think this will do it:
zVal1 = 500;
zVal2 = 1000;
freq = 50;
phase = Math.floor(time*freq);
z = phase%2 ? zVal2 : zVal1;
[value[0],value[1],z]
Dan... Re: Number Count up by Dan Ebberts on Jul 15, 2009 at 2:16:11 am in the Adobe After Effects Forum A text expression like this should get you started:
beginTime = 0;
endTime = 2;
startVal = 100;
endVal = 1000;
"$" + Math.round(linear(time,beginTime,endTime,startVal,endVal))
Dan... Re: Arrow always pointing to centre. by Dan Ebberts on Jun 18, 2009 at 7:51:13 am in the Adobe After Effects Forum An expression like this for rotation should do it:
offset = 180;
L = thisComp.layer("sun");
P1 = L.toWorld(L.anchorPoint);
P2 = toWorld(anchorPoint);
delta = P2 - P1;
offset + radiansToDegrees(Math.atan2(delta[1],delta[0]))
Adjust "offset" until the layer is pointing where you want (probably 0, 90, 180 or -90.
Dan... View More of My COW Tags
My Friends • matthew tully
|
|