Search found 128 matches
- October 16th, 2009, 10:42 am
- Forum: Script requests
- Topic: Unfolding linked layers?
- Replies: 4
- Views: 12472
Re: Unfolding linked layers?
I've built that animation using expressions. The attached project file includes 3 versions of the effect (each of them fully customizeable): 1. Straight path 2. Circular path 3. User defined path (Motion Path) Use the "Controller" layer sliders in each composition to change the parameters ...
- September 24th, 2009, 11:25 pm
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Nice work nab ! Short and simple ! I've built the somewhat complex expression in order to answer the initial request of 4 revolutions at constant velocity, and then gradualy stop the motion to a complete stop. In order to achieve that, and not have a "jump" in the velocity between the two ...
- September 24th, 2009, 12:24 pm
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Hi, I took the time to make the script a dockable panel, with a button for spinning the roulette: It will randomize the parameter for stopping the roulette at a random point (just like the previous script) and will start automatically a RAM Preview (I could not find a way to do a normal PLAY preview...
- September 23rd, 2009, 10:20 am
- Forum: Expression Discussion
- Topic: turning 'off' an expression
- Replies: 8
- Views: 18329
Re: turning 'off' an expression
Yes, something like that...
You actually prepare 2 expressions: one as your desired expression, and the second as the "opposite"/"base"/"unexpressioned" value, and then you use the linear function to change between them according to a slider.
Koby.
You actually prepare 2 expressions: one as your desired expression, and the second as the "opposite"/"base"/"unexpressioned" value, and then you use the linear function to change between them according to a slider.
Koby.
- September 23rd, 2009, 9:55 am
- Forum: Expression Discussion
- Topic: turning 'off' an expression
- Replies: 8
- Views: 18329
Re: turning 'off' an expression
Ah, that's simple: change the last line to: thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")*(Audio*SldTransf) + (1 - SldTransf)*scale[1] or this (using the linear function): tmp = thisComp.layer("Audio Amplitude").effect("Both Channels...
- September 23rd, 2009, 3:24 am
- Forum: Expression Discussion
- Topic: turning 'off' an expression
- Replies: 8
- Views: 18329
Re: turning 'off' an expression
First, you have to have ";" at the end of each line.
Second, MAX was just my name for the maximum value of your slider. If your maximum slider value is 1, then you don't need that.
What is the error message you are getting ?
Second, MAX was just my name for the maximum value of your slider. If your maximum slider value is 1, then you don't need that.
What is the error message you are getting ?
- September 22nd, 2009, 10:05 pm
- Forum: Expression Discussion
- Topic: turning 'off' an expression
- Replies: 8
- Views: 18329
Re: turning 'off' an expression
By the way, another way to do it is to use the "linear" function in order to interpolate between your "expression" value and the "non expression" value: scale in something like: exp = (put your audio expression here, WITHOUT the slider); nonexp = scale; linear(SldTransf...
- September 22nd, 2009, 2:27 pm
- Forum: Expression Discussion
- Topic: turning 'off' an expression
- Replies: 8
- Views: 18329
Re: turning 'off' an expression
Antony, Try adding to your scale expression something like: ... + (1 - SldTransf)*scale This will make sure that when SldTransf reaches 0, you will get your scale (100% or any other value you have given you layer scale). p.s.: If the maximum value of your SldTransf is some "MAX" value, and...
- September 21st, 2009, 6:29 am
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Sébastien, That will not provide a solution to the problem... If you run seedRandom (without any arguments), it will indeed randomize the seed each frame, but that would make the animation totaly jumpy ! It will not settle down on a specific value, it will keep generating random stop positions each...
- September 19th, 2009, 8:40 am
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Ok, I had a little time, so here it is: 1. Create a NULL in your composition, and place it as the first layer. 2. Add to that NULL a slider, and rename it to "myrand" 3. Here is the script you need to run in order to create a random value for "myrand": { // create an undo group a...
- September 19th, 2009, 7:41 am
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
I understand now. Great idea ! :) In order to achieve what you want, you could write a simle script that would write a random number for the seed (or for the ending time: t1). And each time, before you start the animation, you would run the script to give you a different random number. That should b...
- September 19th, 2009, 12:56 am
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Flash is conceptually different, because it includes a software (ActionScript) that runs all the time in the background of the flash animation, thus it can change the random SEED each time a game begins. However in AE you don't have that software control above the renders. You might however use a sc...
- September 18th, 2009, 3:51 pm
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
It is actually random, but since it always uses the same seed, this is always the "same random" value. Change the seed number (on line 4 from "index" to a different number) and you will get different random stop angles. You could make as many animations as you want, just change t...
- September 18th, 2009, 7:58 am
- Forum: Expression Discussion
- Topic: Roulette expression
- Replies: 16
- Views: 35828
Re: Roulette expression
Try this expression (on the rotation property): t0 = 4; //[sec] Nrounds = 4; angleVelocity = Nrounds*360/t0; // [deg/s] seedRandom(index, true); t1 = t0 + random(t0/4,t0/2); y0 = angleVelocity * t0; t = time - inPoint; a = angleVelocity/(t0-t1)/2; c = y0 - a*Math.pow(t0-t1, 2); if (t<t0) ang = angle...
- September 16th, 2009, 3:53 am
- Forum: Script requests
- Topic: Replace layer all sources
- Replies: 1
- Views: 6829
Re: Replace layer all sources
You could do part of what you want using: File -> Consolidate All Footage It will search for different instances of the same footage (solids, videos, pics etc) and remove multiple instances of the same footage (footage that has the same exact location in you hard drive). After that you could use: Fi...