Colin Braley
Forum Replies Created
-
Colin Braley
June 5, 2006 at 1:41 pm in reply to: Blur expression to eliminate flicker during moves on hi-res stillsSam,
The first expression does work, and while it is not as elegant as your solution, I find it is easier to use. Instead of having the user adjust, “blurFactor” over and over again until their image has the right amount of blur, they can explicitly specify the maximum amount of blur they want using “maxBlur.” The second expression was not meant to simply adjust blur as a funtion of speed. Steve Roberts posted and said it would be possible to use the first expression to make something interesting, so I used the speed of the layer to drive the frequency of a sine wave which controlled the blur.
~Colin -
Colin Braley
June 4, 2006 at 11:42 pm in reply to: Blur expression to eliminate flicker during moves on hi-res stillsI’m glad you appreciate my attempts at poetry Steve
-
Colin Braley
June 4, 2006 at 11:42 pm in reply to: Blur expression to eliminate flicker during moves on hi-res stillsI’m glad you appreciate my attempts at poetry Steve
-
Colin Braley
June 4, 2006 at 7:13 pm in reply to: Blur expression to eliminate flicker during moves on hi-res stillsWell Steve said we can mess with this expression to make something “poetic” so here goes….
//begin expression—
maxBlur = 5;
amp = 30;
freqAdjust = 1.2;
//———————
function findMax(){
max = position.speedAtTime(0);
for(t = timeToFrames(inPoint); t < timeToFrames(outPoint); t++){ curr = position.speedAtTime( framesToTime( t ) ); if( curr > max)
max = curr;
}//End for loop
return max;
}//End method
s = position.speed;
sMax = findMax();
//–
freq = linear(s, 0, sMax, 0, amp);
amp * Math.sin(time + freq/freqAdjust) + amp//end expression—
//end expression—
In this one the bluriness paramater oscillates up and down and the speed of the layer’s movements control how fast it oscillates.
-
Colin Braley
June 4, 2006 at 7:13 pm in reply to: Blur expression to eliminate flicker during moves on hi-res stillsWell Steve said we can mess with this expression to make something “poetic” so here goes….
//begin expression—
maxBlur = 5;
amp = 30;
freqAdjust = 1.2;
//———————
function findMax(){
max = position.speedAtTime(0);
for(t = timeToFrames(inPoint); t < timeToFrames(outPoint); t++){ curr = position.speedAtTime( framesToTime( t ) ); if( curr > max)
max = curr;
}//End for loop
return max;
}//End method
s = position.speed;
sMax = findMax();
//–
freq = linear(s, 0, sMax, 0, amp);
amp * Math.sin(time + freq/freqAdjust) + amp//end expression—
//end expression—
In this one the bluriness paramater oscillates up and down and the speed of the layer’s movements control how fast it oscillates.
-
Colin Braley
June 4, 2006 at 6:29 am in reply to: Blur expression to eliminate flicker during moves on hi-res stillsEven though i did post an expresison for you, for reducing flicker expressions probably aren’t the way to go. I suggest using motion blur and cranking up the shutter angle or just adding a very small gaussian blur.
-
Colin Braley
June 4, 2006 at 6:29 am in reply to: Blur expression to eliminate flicker during moves on hi-res stillsEven though i did post an expresison for you, for reducing flicker expressions probably aren’t the way to go. I suggest using motion blur and cranking up the shutter angle or just adding a very small gaussian blur.
-
Colin Braley
June 4, 2006 at 6:25 am in reply to: Blur expression to eliminate flicker during moves on hi-res stillsWhen I animate still I use motion blur to redice flicker. However, if you were to add an expression to the Bluriness parameter of Gaussian Blur or Fast Blur it might look somehting like this:
//begin expression—
maxBlur = 5;
//———————
function findMax(){
max = position.speedAtTime(0);
for(t = timeToFrames(inPoint); t < timeToFrames(outPoint); t++){ curr = position.speedAtTime( framesToTime( t ) ); if( curr > max)
max = curr;
}//End for loop
return max;
}//End method
s = position.speed;
sMax = findMax();
//–
linear(s, 0, sMax, 0, maxBlur)
//end expression—Just change the value of maxBlur to whatever you want. However, be warned that if you have a very long move on one of the stills this expression can take a while to evaluate, and in that case you would probably set up the expression a bit different.
~Colin -
Colin Braley
June 4, 2006 at 6:25 am in reply to: Blur expression to eliminate flicker during moves on hi-res stillsWhen I animate still I use motion blur to redice flicker. However, if you were to add an expression to the Bluriness parameter of Gaussian Blur or Fast Blur it might look somehting like this:
//begin expression—
maxBlur = 5;
//———————
function findMax(){
max = position.speedAtTime(0);
for(t = timeToFrames(inPoint); t < timeToFrames(outPoint); t++){ curr = position.speedAtTime( framesToTime( t ) ); if( curr > max)
max = curr;
}//End for loop
return max;
}//End method
s = position.speed;
sMax = findMax();
//–
linear(s, 0, sMax, 0, maxBlur)
//end expression—Just change the value of maxBlur to whatever you want. However, be warned that if you have a very long move on one of the stills this expression can take a while to evaluate, and in that case you would probably set up the expression a bit different.
~Colin