Search found 128 matches

by kobyg
December 12th, 2009, 3:57 pm
Forum: Script requests
Topic: Calculating vector length and angle
Replies: 2
Views: 12342

Re: Calculating vector length and angle

Try this transformation at the end of your angle expression: (ang+270)%360 where "ang" is your previous calculated value. meaning your expression should be changed to this: this_point=effect("line")("Starting Point"); that_point=effect("line")("Ending Poi...
by kobyg
November 30th, 2009, 3:09 pm
Forum: Expression Discussion
Topic: opacity according to another layers time remap
Replies: 7
Views: 16233

Re: opacity according to another layers time remap

Upload the file and I will try help you spot the problem...

Koby.
by kobyg
November 30th, 2009, 10:56 am
Forum: Expression Discussion
Topic: opacity according to another layers time remap
Replies: 7
Views: 16233

Re: opacity according to another layers time remap

Make sure you give the TimeRemap value in frames and not in seconds,
Can't think of anything else that could go wrong.
I've tried your exact expression on my computer and it worked with no problem...

Koby.
by kobyg
November 24th, 2009, 12:40 pm
Forum: Expression Discussion
Topic: Slider controlling frame rate
Replies: 2
Views: 9856

Re: Slider controlling frame rate

Try the following expression for the TimeRemapping, but before that add 2 sliders to the layer, and name them like this: 1."movieFps" slider - give it the value of the FPS of your movie clip (125 in your example). 2."desiredFps" slider - give it your desired FPS. You can use keyf...
by kobyg
November 17th, 2009, 1:38 pm
Forum: Expression Discussion
Topic: Find lines intersection
Replies: 4
Views: 27432

Re: Find lines intersection

Thunderino, If this is still relevat, please post a project file so we can understand better how you've built the elements, and understand the problem better, and hopefully could find a solution. If I understood the problem correctly, this is not as simple as it seems, but I have an idea how to solv...
by kobyg
November 11th, 2009, 10:57 am
Forum: Expression Discussion
Topic: Opening credit titles of "Vacancy"
Replies: 6
Views: 16401

Re: Opening credit titles of "Vacancy"

Hi raju, thank you for the compliments ... :oops: Just because of that, I wrote the expression that would change the camera zoom automaticaly ... :) The expression checks the Scale of each text layer, and automatically makes the zoom bigger for smaller text and smaller for bigger text. This way, if ...
by kobyg
November 10th, 2009, 5:06 am
Forum: Expression Discussion
Topic: Opening credit titles of "Vacancy"
Replies: 6
Views: 16401

Re: Opening credit titles of "Vacancy"

Hi raju, You can do it also in 2D, using the SureTarget preset. I've played with it because I liked the idea... :) I've attached a small animation I've built using that preset, using 5 TEXT layers. The preset does most of the work, except "getting closer" to the small TEXT. In order to mak...
by kobyg
November 9th, 2009, 4:53 am
Forum: Expression Discussion
Topic: Opening credit titles of "Vacancy"
Replies: 6
Views: 16401

Re: Opening credit titles of "Vacancy"

If you want it in 3D
check out Andrew Kramer's "Sure Target".
see the tutorial here:
http://www.videocopilot.net/tutorials/energetic_titles/

Koby.

p.s.: Don't miss version 1.5.
by kobyg
November 3rd, 2009, 8:59 am
Forum: Expressions Library
Topic: align layers along a path
Replies: 6
Views: 40336

Re: align layers along a path

Hi Nino, The Auto-orient will not work... However you can use another expression for the Orientation :) This expression will make the layer look at the tangent direction of the original path, using the lookAt expression. It should look something like: nullPos = thisComp.layer("Null 1").pos...
by kobyg
November 2nd, 2009, 2:42 pm
Forum: Expressions Library
Topic: align layers along a path
Replies: 6
Views: 40336

Re: align layers along a path

You could copy your path to the position of a NULL layer, making it move according to your path, and then use the valueAtTime expression to sample that position to each of your 10 layers, using the layer's index in order to sample at a different time. You could use a slider to change the spacing bet...
by kobyg
October 23rd, 2009, 2:19 pm
Forum: Script requests
Topic: Motion based animation like leaves or ornaments on a tree.
Replies: 10
Views: 17483

Re: Motion based animation like leaves or ornaments on a tree.

what do you mean by "motion 4's" ... ?
by kobyg
October 18th, 2009, 3:49 pm
Forum: Script requests
Topic: Motion based animation like leaves or ornaments on a tree.
Replies: 10
Views: 17483

Re: Motion based animation like leaves or ornaments on a tree.

Yes, I see it now... I forgot that the 3 values of the orientation are interconnected with each other, and there is the continuity point at 360, where it jumps back to 0, thus if you change only one value at that point you would mess the continuity of the orientation... Bottom line is: You should no...
by kobyg
October 18th, 2009, 11:47 am
Forum: Script requests
Topic: Motion based animation like leaves or ornaments on a tree.
Replies: 10
Views: 17483

Re: Motion based animation like leaves or ornaments on a tree.

You could try this: [ang[0],ang[1],ang[2]*effect("spin ctrl")("Slider")] so when "spin ctrl"=1 it would give you the full spin angle from my original expression, and smaller "spin ctrl" values will decrease the angle, until "spin ctrl"=0 that would m...
by kobyg
October 17th, 2009, 10:22 pm
Forum: Script requests
Topic: Motion based animation like leaves or ornaments on a tree.
Replies: 10
Views: 17483

Re: Motion based animation like leaves or ornaments on a tree.

1. ks is the "spring constant". larger value makes the spring "stronger", thus making smaller and faster oscilations of the spring. 2. yes, the orientation is set to look at the leader, and then rotated by 90 deg at the xRotation. You can change both of them as you desire. You ca...
by kobyg
October 17th, 2009, 3:31 pm
Forum: Script requests
Topic: Motion based animation like leaves or ornaments on a tree.
Replies: 10
Views: 17483

Re: Motion based animation like leaves or ornaments on a tree.

Try this expression: restLength = 200; damp = .97; leader = thisComp.layer("leader2"); g = 0.5; ks = 2; fDur = thisComp.frameDuration; currFrame = Math.round(time / fDur); p2 = position.valueAtTime(0); v2 = 0; for (f = 0; f <= currFrame; f++){ t = f*fDur; p1 = leader.position.valueAtTime(t...