Search found 128 matches

by kobyg
September 4th, 2008, 3:18 pm
Forum: Expression Discussion
Topic: Move layer by marker Name
Replies: 6
Views: 13308

Re: Move layer by marker Name

Try changing this:
mNum = m.nearestKey(time).comment;

to this:
ind = m.nearestKey(time).index;
if (m.nearestKey(time).time > time){
ind--;}
ind = ind<1 ? 1 : ind;
mNum = m.key(ind).comment;

Koby.
by kobyg
August 28th, 2008, 10:11 pm
Forum: Scripts Discussion
Topic: Got an idea for a new plugin
Replies: 2
Views: 7690

Re: Got an idea for a new plugin

Here are some links that could get you started with writting AE Plugins: How to Write Plug-Ins for Adobe After Effects: http://www.mactech.com/articles/mactech/Vol.15/15.09/AfterEffectsPlugins/ After Effecst CS3 SDK: http://www.adobe.com/devnet/aftereffects/sdk/cs3/ After Effects API Zone Blog: http...
by kobyg
August 26th, 2008, 5:41 am
Forum: Script requests
Topic: Trim layers based on Opacity - save a lot of render time
Replies: 20
Views: 45437

Re: Trim layers based on Opacity - save a lot of render time

Hi! Since I couldn't find such script anywhere, and no one here wrote me that he knows about such script, I decided to write it myself! So here is it, for anyone who wants it. It does exactly what I've written in the previous post (you can see it also at the beginning of script). I've tested it on a...
by kobyg
August 24th, 2008, 3:20 pm
Forum: Expression Discussion
Topic: Controlling Rotational speed from a control layer?
Replies: 7
Views: 15892

Re: Controlling Rotational speed from a control layer?

Yes, the inertial expression looks for keyframes. But if you are only looking for a bounce at the end of the motion, and don't want more bounces at in-between points, you could try that expression: damp = 1.2; decay = 2.0; vf = 90; t = time - inPoint; vf*(1 - Math.cos(2*Math.PI*damp*t)/Math.exp(deca...
by kobyg
August 24th, 2008, 1:55 am
Forum: Expression Discussion
Topic: Controlling Rotational speed from a control layer?
Replies: 7
Views: 15892

Re: Controlling Rotational speed from a control layer?

I didn't understand completely what you're trying to do, but if the problem is that the rotation is done with keyframes which makes a constant rotation time, and you want to be able to change the rotation time later, you could use an expression to do the rotation instead of the keyframes, this way t...
by kobyg
August 23rd, 2008, 11:54 pm
Forum: Expression Discussion
Topic: Controlling Rotational speed from a control layer?
Replies: 7
Views: 15892

Re: Controlling Rotational speed from a control layer?

jayse,
One way to do it is to put your composition in a new comp and use Time Remapping or speed change (Stretch) to change the duration of the animation. (for example, if you want the animation to take 4 frames instead of 6 frames you could change the Stretch to 66.6667%).
by kobyg
August 23rd, 2008, 1:14 am
Forum: Script requests
Topic: Trim layers based on Opacity - save a lot of render time
Replies: 20
Views: 45437

Trim layers based on Opacity - save a lot of render time

Hi Guys, I've noticed that After Effects does not optimize the rendering based on the opacity of the layers. I mean that even if the layer's opacity is 0%, AE calculates it's pixels but then does not use it. If you have a lot of layers (tens or hundredrs), but only a few of them with opacity greater...
by kobyg
August 22nd, 2008, 3:48 pm
Forum: Expressions Library
Topic: Domino Expression
Replies: 9
Views: 51570

Re: Domino Expression

ccf,
Just add a light source, lighting the back side of the images, and you will be able to see them from that side.

If you want that lights source just to light the back side of the images and not change the current shadows of the animation, turn off "Cast Shadows" for that light source.
by kobyg
August 20th, 2008, 2:35 am
Forum: Expressions Library
Topic: Domino Expression
Replies: 9
Views: 51570

Re: Domino Expression

Here is a modified expression for the domino effect, that solves the "divide by zero" error, in case the distance between pictures is bigger than images' height. In that case, the "domino pieces" would fall each one at it's own turn instead of trigerring the fall of each other, b...
by kobyg
August 16th, 2008, 8:44 am
Forum: Expressions Library
Topic: Domino Expression
Replies: 9
Views: 51570

Re: Domino Expression

My guess is that you have used images/clips with Height smaller than the distance between the images. That would result in a divide by zero error, because the image's height must be higher than the distance to the next image in order to touch it when it falls, otherwise the expression formula would ...
by kobyg
August 8th, 2008, 8:36 am
Forum: Expression Discussion
Topic: layer orientation without "lookat"
Replies: 1
Views: 7090

Re: layer orientation without "lookat"

You could always add to the lookAt another angle to change the orientation as you desire such as: lookAt(A.position,C.position) + [ANGx,ANGy,ANGz] Where ANGx, ANGy, ANGz are the angles you want to rotate the layer in x,y,z axes respectively, in addition to the exact orientation the lookAt gave you. ...
by kobyg
August 6th, 2008, 3:32 pm
Forum: Expressions Library
Topic: Domino Expression
Replies: 9
Views: 51570

Domino Expression

Here is an expression I wrote that makes pictures drop like domino pieces falling on each other. You should apply this expression to the xRotation property of a sequence of 3D layers (pictures) that are distributed in the Z-axis. The Anchor point of each layer should be at the bottom of the later. T...
by kobyg
July 31st, 2008, 6:43 am
Forum: Expression Discussion
Topic: offsetting start time of pendulum
Replies: 9
Views: 17486

Re: offsetting start time of pendulum

If you want to use a threshold on the velocity, check out first Dan Ebberts's page: http://www.motionscript.com/design-guide/audio-trigger.html If you want to tweak the last expression, so you will have different amplitude at each bounce, you could use: my_times = [1, 5, 9.5]; my_amp = [80, 40, 60];...
by kobyg
July 31st, 2008, 4:58 am
Forum: Expressions Library
Topic: Bounce from the wall like from the floor
Replies: 4
Views: 38137

Re: Bounce from the wall like from the floor

Try changing the v expression to this one:

v = position[0] + maxDev*Math.abs(Math.sin(spd*t))/Math.exp(decay*t);

Koby.
by kobyg
July 31st, 2008, 4:25 am
Forum: Expression Discussion
Topic: offsetting start time of pendulum
Replies: 9
Views: 17486

Re: offsetting start time of pendulum

If you want to repaet the bounce movement at specific times, you could try this: my_times = [1, 5, 9.5]; veloc = 7; amplitude = 80; decay = .7; inTime = -500; for (i=0; i<my_times.length; i++){ if (time>=my_times[i]) inTime = my_times[i]; } t = time - inTime; amplitude*Math.sin(veloc*t)/Math.exp(dec...