View My Website
My Recent Posts: Re: Linking 3D rotation to opacity by Dan Ebberts on Nov 18, 2009 at 8:31:17 pm
Re: Linking 3D rotation to opacity by Dan Ebberts on Nov 18, 2009 at 8:00:41 pm
Re: Linking 3D rotation to opacity by Dan Ebberts on Nov 18, 2009 at 7:21:34 pm
Re: Random Lines – movement from a certain point by Dan Ebberts on Nov 18, 2009 at 7:05:09 pm
Re: find and replace text within expressions? by Dan Ebberts on Nov 18, 2009 at 6:29:41 pm
Re: How to find first letter of the layer name? by Dan Ebberts on Nov 17, 2009 at 3:32:00 pm
Re: Help with a script TONIGHT PLEASE by Dan Ebberts on Nov 13, 2009 at 5:40:17 pm
Re: Help with valueAtTime! by Dan Ebberts on Nov 12, 2009 at 7:18:01 pm
Re: Help with a script TONIGHT PLEASE by Dan Ebberts on Nov 12, 2009 at 5:39:18 pm
Re: Help with a script TONIGHT PLEASE by Dan Ebberts on Nov 12, 2009 at 4:15:04 pm
Re: motion in a grid by Dan Ebberts on Nov 11, 2009 at 5:30:25 pm
Re: motion in a grid by Dan Ebberts on Nov 11, 2009 at 7:19:32 am
Re: motion in a grid by Dan Ebberts on Nov 10, 2009 at 7:27:54 pm
Re: HELP! I think this expression is crashing CS4 by Dan Ebberts on Nov 10, 2009 at 3:47:17 pm
Re: Is this a possible script? by Dan Ebberts on Nov 7, 2009 at 11:26:19 pm
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
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
|
|