Mike Clasby
Forum Replies Created
-
Wiggle Y Only:
[value[0],wiggle(1,100)[1]]
Wiggle X Only:
[wiggle(5,30)[0],value[1]]
Wiggle X and Y seperately:
[wiggle(5,30)[0],wiggle(1,100)[1]]
You can tie any of the above to sliders, highlight the “1” in the first expression and pickwhip to a slider stopwatch (after you use, Effect>Expression Controls>Slider Control, then name it “Y Frequency”), then the slider controls that number (Frequency 1st number, amplitude 2nd number).
-
You might find this useful, and the I have a question for Dan. Here’s the same thing triggered by a marker set on the layer (From one of Dan’s earlier posts):
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n–;
}
}if (n == 0){
value;
}else{
max_dev=20; // max deviation in pixels
spd=35; //speed of oscillation
decay=10; //how fast it slows down
t = time – marker.key(n).time;
s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
value + [s,s];
}Question for Dan, I hacked the above from a “Marker Triggers Move” expression of yours, my question is, can I make the Trigger specific to a markers name, like one marker triggers a Move and a different marker (same layer)triggers a Squish and Squash?
-
You might find this useful, and the I have a question for Dan. Here’s the same thing triggered by a marker set on the layer (From one of Dan’s earlier posts):
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n–;
}
}if (n == 0){
value;
}else{
max_dev=20; // max deviation in pixels
spd=35; //speed of oscillation
decay=10; //how fast it slows down
t = time – marker.key(n).time;
s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
value + [s,s];
}Question for Dan, I hacked the above from a “Marker Triggers Move” expression of yours, my question is, can I make the Trigger specific to a markers name, like one marker triggers a Move and a different marker (same layer)triggers a Squish and Squash?
-
Ok, a smooth path is definitely possible. The jitter (in the excellent tut) is because he used Motion Sketch to make the paths.
I drew an Oval mask with (you guessed it) the Oval Mask Tool, and copied the Mask Shape, Pasted it into Position of “White Solid 1” (I’d deleted exsisting keyframes before) and got a smooth path, and I deleted the in-between position keyframes for Null 1, now when you apply the his expression you get a very smooth path.
Add a camera to get a perspective view of what your doing.Note; If you’re having trouble visualizing you 3D path, you can create a trail (from Dan’s Trail page)
https://www.motionscript.com/mastering-expressions/follow-the-leader.html
By moving the Solid 1 to the top of the stack, then making a new solid, move it to the second down on the stack (just below Solid 1)(say 10×10 and another color) making it 3D, and adding this expression to the position:
delay = 10; //number of frames to delay
d = delay*thisComp.frameDuration*(index – 1);
thisComp.layer(1).position.valueAtTime(time – d)then dup the layer say 10 times and you get a trail of solids that show the 3D path nicely.
Or you can use Dan’s “Follow the Null” method farther down the same page (maybe better).
-
Ok, a smooth path is definitely possible. The jitter (in the excellent tut) is because he used Motion Sketch to make the paths.
I drew an Oval mask with (you guessed it) the Oval Mask Tool, and copied the Mask Shape, Pasted it into Position of “White Solid 1” (I’d deleted exsisting keyframes before) and got a smooth path, and I deleted the in-between position keyframes for Null 1, now when you apply the his expression you get a very smooth path.
Add a camera to get a perspective view of what your doing.Note; If you’re having trouble visualizing you 3D path, you can create a trail (from Dan’s Trail page)
https://www.motionscript.com/mastering-expressions/follow-the-leader.html
By moving the Solid 1 to the top of the stack, then making a new solid, move it to the second down on the stack (just below Solid 1)(say 10×10 and another color) making it 3D, and adding this expression to the position:
delay = 10; //number of frames to delay
d = delay*thisComp.frameDuration*(index – 1);
thisComp.layer(1).position.valueAtTime(time – d)then dup the layer say 10 times and you get a trail of solids that show the 3D path nicely.
Or you can use Dan’s “Follow the Null” method farther down the same page (maybe better).
-
Take a look at this tut:
Using Motion Sketch to build a Spiral Path in 3D Space by Fang Xiang
Article Type: Tutorial
In this article, Fang Xiang demonstrates using motion sketch and an expression to build a spiral path in 3D space.It seems like a bit of a bumpy ride to me so making a smooth 3D path… I dunno.
-
Take a look at this tut:
Using Motion Sketch to build a Spiral Path in 3D Space by Fang Xiang
Article Type: Tutorial
In this article, Fang Xiang demonstrates using motion sketch and an expression to build a spiral path in 3D space.It seems like a bit of a bumpy ride to me so making a smooth 3D path… I dunno.
-
Mike Clasby
August 9, 2006 at 6:23 pm in reply to: Controlling Wave World or Radio Waves with sound?Also if the snare sounds are to close or bunched up, and hence the Radio wave are bunched up, you can spread the whole mess out by increasing the “Expansion” (also under Wave Motion), or you can bunch them closer by decreasing the expansion.
-
Mike Clasby
August 9, 2006 at 6:23 pm in reply to: Controlling Wave World or Radio Waves with sound?Also if the snare sounds are to close or bunched up, and hence the Radio wave are bunched up, you can spread the whole mess out by increasing the “Expansion” (also under Wave Motion), or you can bunch them closer by decreasing the expansion.
-
Mike Clasby
August 9, 2006 at 6:16 pm in reply to: Controlling Wave World or Radio Waves with sound?Try linking the Radio Wave > Wave Motion > Frequency to the Sound Keys Output 1 (if that’s the Range you used) with an expression.
Alt Click the Frequency Stopwatch then pickwhip to the Output 1(the little @ looking middle box when you Alt Click, drag that to the Output 1 stopwatch) , to get this on the layer with the Radio Waves:
effect(“Sound Keys”)(“Output 1”)
I had the Radiowaves on the same layer as the Sound Keys so if they’re on different layers the expression will look different.
If there are big numbers for the output 1, like 75 in my test, then you get a huge band when the sound goes off, so try dividing the Frequency expression by 5 or 10, so the expression for Frequency looks like this:
effect(“Sound Keys”)(“Output 1”) / 5
or
effect(“Sound Keys”)(“Output 1”) / 10Also look at the Output 1 keyframe values (I’m assuming you hit the Apply button in Sound Keys to make keyframes) up and down the timeline, and if there is no “0” values between the positive values, then you will get a constant stream of radiowaves, not a nice clean cutoff like you want. You need to fool with Sound keys until you get Positive values (when your Snare are Snaring) and Zero values (when you snares are not making noise).