Search found 158 matches

by Atomic
December 3rd, 2007, 9:14 am
Forum: Expressions Library
Topic: Simulate a "scrubbing" effect
Replies: 8
Views: 50395

Malex, This code does not seem to really work. No matter what values I put in, it does not change the speed or duration of footage. I applied it to a time map of a precomp. I am looking for a way to randomly select a frame from a precomp, have it remain on screen for x number of frames, then choose ...
by Atomic
November 30th, 2007, 6:28 am
Forum: Expression Discussion
Topic: Ping pong movement between 2 layers
Replies: 2
Views: 8915

by Atomic
November 19th, 2007, 11:23 am
Forum: Expression Discussion
Topic: Layers Rotate Into View As Camera Approaches.
Replies: 4
Views: 10190

This kind of works, but there is no hold.

Code: Select all

startRot = 500; // Start rotate 500 pixels from camera.
endRot = 1500;  // End rotate 1500 pixels from camera.
C = thisComp.activeCamera.toWorld([0,0,0]);
P = toWorld(anchorPoint);
d = length(C,P);
linear(d,startRot,endRot,180,0)
by Atomic
November 18th, 2007, 2:50 pm
Forum: Expression Discussion
Topic: Layers Rotate Into View As Camera Approaches.
Replies: 4
Views: 10190

Dan, No it does not matter. I got this idea from watching some footage I made with my camcorder. It was the end of summer and there is green grass and dead leaves on the lawn. I put my camcorder in the grass and drove it around the lawn like a kid would do with a tonka truck. This produced a neat ef...
by Atomic
November 18th, 2007, 9:54 am
Forum: Expression Discussion
Topic: Layers Rotate Into View As Camera Approaches.
Replies: 4
Views: 10190

Layers Rotate Into View As Camera Approaches.

Hi All, I am trying to make an expression to achieve a certain effect. Imagine a comp 720x480, a solid 3D layer 160x600 and a camera. I move the anchor point of the solid to the bottom of the solid. Now I can rotate the X axis and make it lay flat from the bottom. I want to put a bunch of these litt...
by Atomic
November 15th, 2007, 7:19 am
Forum: Expression Discussion
Topic: Pendulum following Null object
Replies: 1
Views: 7614

I would take a look at this page:

http://www.jjgifford.com/expressions/re ... index.html

Maybe you can adapt something?
by Atomic
November 15th, 2007, 7:06 am
Forum: Expression Discussion
Topic: Layer1 Audio Adjusts the audio levels of Layer2? But How?
Replies: 2
Views: 8570

The effect is called called "ducking" in the audio world. If you have access to an audio program or editor, you may want to "prep" the music bed in external software. But if you really are stuck with After Effects processing, why not just extend your expression a bit. [code] temp...
by Atomic
November 12th, 2007, 6:29 am
Forum: Scripts Discussion
Topic: Calculate number of lines in paragraph text
Replies: 3
Views: 9276

You could always just read the text from a file, then assign it to a layer.

Then you would know how many lines of text you created.

Of course, you can not create paragraph text via jsx code in AE7. CS3 , I don't know?
by Atomic
November 9th, 2007, 6:57 am
Forum: Expression Discussion
Topic: Increasing opacity
Replies: 14
Views: 26361

I'm not sure if your layers are text or images, but here is a link to a script that will import everything in a folder and make a comp for you. http://www.aenhancers.com/viewtopic.php?t=719 http://aenhancers.com/viewtopic.php?t=102 The code in this script actually generates expressions for you, so i...
by Atomic
November 7th, 2007, 7:01 am
Forum: Scripts Discussion
Topic: Connecting to Excel
Replies: 8
Views: 22874

I guess your right, I can not connect either. Jscript is Microsoft based and After Effects Javascript seems to be proprietary. I did find this arcticle: http://www.creative-workflow-hacks.com/2006/06/08/how-to-use-a-spreadsheet-to-generate-lower-thirds-slates-titles-etc-in-after-effects/ So how does...
by Atomic
November 6th, 2007, 12:42 pm
Forum: Scripts Discussion
Topic: Connecting to Excel
Replies: 8
Views: 22874

The one thing I notice is that you reference "worksheet(1)"

In my VB version I simply referenced "Sheets(1)"

Maybe it is something as simple as that?

Try changing worksheet(1) to Sheets(1)
by Atomic
November 1st, 2007, 6:56 am
Forum: Expression Discussion
Topic: Camera After Motion Between Frames
Replies: 2
Views: 7773

Thanks Dan, That looks like it works! Hmmm... An interesting side effect of this expression is that is crashes After Effects 7 if you change the length of your comp. Here is the work flow for creating the crash. 1.)Make a new comp that is 10 seconds long. 2.)Add some text and turn on the 3D switch. ...
by Atomic
October 31st, 2007, 1:41 pm
Forum: Expression Discussion
Topic: Camera After Motion Between Frames
Replies: 2
Views: 7773

Camera After Motion Between Frames

Hi All, I have been trying to do camera after motion. I have this expression: t = time- key(2).time; if (t < 0) { value; } else { veloc =28; amplitude = 60; decay =2.05; x = amplitude*Math.cos(veloc*t)/Math.exp(decay*t); y = amplitude*Math.sin(veloc*t)/Math.exp(decay*t); value + [x,y]; } Which does ...
by Atomic
October 30th, 2007, 5:58 am
Forum: Expression Discussion
Topic: 3D reflections - animated following reflection
Replies: 1
Views: 6879

The "jump" of the pre-composed layer somtimes may be the result of the camera position in the pre-composed layer. This took me a while to figure out. If I am making a 3D object that I plan on manipulating further up the stack I zero the camera in the comp and use the "Custom View"...