Search found 9 matches

by goldomega
November 28th, 2005, 11:43 am
Forum: Expression Discussion
Topic: newbie: add value to position
Replies: 3
Views: 10377

If you are animating the position of your 0-layer, you might be having a problem adding arrays. The problem is that some properties, like position, call for an array of all three axes [x,y,z] rather than for just one axis. So when you add the position of your null to the position of your layer, your...
by goldomega
October 24th, 2005, 2:35 pm
Forum: Expressions Library
Topic: Expression for offset and bounce
Replies: 2
Views: 20262

If you need a fast solution, set two keyframes for the spinning motion, and try this expression on the 'shift center to' property of Offset: freq = 10; amplitude = 25; decay = 5.0; t = time - key(numKeys).time; x = scale[0] + amplitude*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); if (time < key(num...
by goldomega
October 24th, 2005, 12:04 pm
Forum: Expressions Library
Topic: Expression for offset and bounce
Replies: 2
Views: 20262

I would check Dan Ebberts' amazing expression site Motionscript.com. After going through the basics of expressions, check out the section on physical simulations: http://www.motionscript.com/mastering-expressions/simulation-basics-3.html Using sine waves and exponential decay, you should be able to ...
by goldomega
October 20th, 2005, 11:23 am
Forum: Expressions Library
Topic: Imitating a film projector with FPS control
Replies: 2
Views: 37236

Very neat expression, Lloyd. To clarify for people who are seeing this expression for the first time, the 'reset' part of the code is to keep the value on "ShiftCenterTo" from becoming astronomically high. Effects in some versions of After Effects don't handle high numbers well. As a sugge...
by goldomega
October 18th, 2005, 12:59 pm
Forum: Expression Discussion
Topic: getting past the 32K AE limit
Replies: 2
Views: 9386

Try this expression. Your value should offset itself by the height of your comp, so it should look like a continuous value stream, but within the confines of your comp height. Offset: fps= 24; t=time * fps; move= t * thisComp.height; reset=Math.floor(move/thisComp.height); moveReset=move-reset*thisC...
by goldomega
October 13th, 2005, 12:58 pm
Forum: Expression Discussion
Topic: Merge Rotation and Orientation - A bit Off topic
Replies: 1
Views: 7822

The problem is that in 3d, rotation becomes three separate properties that represent the X Y and Z axes, and orientation includes data for all three axes in the one property. So, if you paste a keyframe from rotation Z onto orientation, orientation wants [X,Y,Z] rather than just [Z]. If you have a l...
by goldomega
September 28th, 2005, 8:14 am
Forum: Expression Discussion
Topic: Exponential increase in speed of a layer/camera
Replies: 2
Views: 9636

Try putting this on your layers rather than precomposing them: accellMultiplier=5; x=position[0]; y=position[1]; z=position[2]+(time-(Math.exp(time*accellMultiplier))); [x,y,z] This expression causes your layer to move backwards in z space exponentially over time. accellMultiplier lets you affect wh...
by goldomega
September 28th, 2005, 6:52 am
Forum: Expression Discussion
Topic: Camera Expression
Replies: 1
Views: 7965

There may be an easier way of writing this, but this should show you how you can access different index values of arrays. yourCamera=thisComp.layer("Camera 1"); yourCameramovement=yourCamera.position[2]-yourCamera.position.valueAtTime(0)[2]; layerSpeed=0.1; x=position[0]; y=position[1]; z=...
by goldomega
August 24th, 2005, 4:20 pm
Forum: Expression Discussion
Topic: Accessing Colors
Replies: 1
Views: 7879

Accessing Colors

Does anyone know of a way of accessing a color value at a specific point on a layer or in the comp window within an expression, like an eyedropper that samples and returns a color every frame?