Lord Scales
Forum Replies Created
-
Try this, written by Dan Ebberts:
segMin = 1.0; //minimum segment duration
segMax = 1.5; //maximum segment duration
flickerDurMin = .5;
flickerDurMax = .8;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
flickerDur = random(flickerDurMin,flickerDurMax);
if (time > end – flickerDur){
seedRandom(1,false);
random(100);
}else{
100
} -
Oh, but basically the LayerSpace Transformations are these: toComp (), fromComp (), toWorld ()
Thinks in the World Space as a 2D environment and think in Comp Space as a 2D environment affected by the camera.
Sorry with my explanations are not good, I am terrible at writing tutorials and explanations.
-
Try http://www.motionscript.com, you will get them easily.
But an easy (and maybe wrong) way to illustrate the Layer Space Transformations is:
And the 2 axis in the image above can be given converting the layer’s Anchor Points to the Comp Space (camera affect) or to the World Space (camera doesn’t affect).
-
Hmm, good point. I created my example thinking in sampling a beat in the audio.
-
[Dan Ebberts] ”
maxAudio = 20; // whatever your maxium audio amplitude is
temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
linear(temp,0,maxAudio,[50,50],[150,150])”Dan, using this wouldn’t we get the same?
minScale = 50;
maxScale = 150;temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
fS = clamp (temp, minScale, maxScale);[fS, fS]
It is more a test. I am not with AFX in this PC, so I just would like to know with clamp (v, limit1, limit2) cutoffs the value or “fill” it inside the limits.
-
Try this Dan Ebberts tutorial: Random Pan and Scale:
https://www.motionscript.com/mastering-expressions/random-3.html
Lord Scales
-
Try Channel Combiner to create the Alpha Channel. It can create a sharp looking in the Fractal but sometimes it is pretty nice.
Lord Scales
-
I thought it could be once I use a lot of linear() function. But now I created a better and simplified expression to do the same and I am using less if them.
I hate when it creates 1 keyframe to every single frame. I think they could make AFX more intelligent in this task of converting expressions to keyframes. It could take 1 or 2 seconds more but anyway it’d be better.
While they don’t, I am going to use your strategy!
Lord Scales
-
Oh, thanks for help, but I already solved my problem changing completely the expression I was using.
I just hope this new one wont take one year to render…amp = effect(“General Controls”)(“Flickering”);
w = wiggle (2, amp);
check = effect(“General Controls”)(“Use Light’s Intensity?”);
idx = Math.round (effect(“General Controls”)(“Light Index”));
l = thisComp.layer (idx);
lPos = l.position;
lInt = l.intensity;
aC = thisComp.activeCamera;
aCPos = aC.position;
mInt = effect(“General Controls”)(“Intensity”) + w;
lmInt = mInt + lInt + w;curDist = length (aCPos, lPos)
maxLimit= 2500;
minLimit = 0
lmtedLen = clamp (curDist, minLimit, maxLimit);
FI = linear (lmtedLen, minLimit, maxLimit, mInt, mInt/10);
FII = linear (lmtedLen, minLimit, maxLimit, lmInt, lmInt/10);
FIDiv = linear (FI, mInt, mInt/10, 15, 1);
FIIDiv = linear (FII, lmInt, lmInt/10, 15, 1);
finFI = linear (FI, mInt, mInt/10, mInt, mInt/FIDiv);
finFII = linear (FII, lmInt, lmInt/10, lmInt, lmInt/FIIDiv);
FIMult = linear (FI, mInt, 0, .2, 2);
FIIMult = linear (FII, lmInt, 0, .2, 2);if (check == 1) {
finFII*FIIMult
} else {
finFI*FIMult
}This applied in a slider. In the main one I used this:
intSlider = effect(“Intensity”)(“Slider”);
if (Math.floor (intSlider <= 3)) { 0 } else { intSlider } Will it take too much time to render? Lord Scales
