Hi Dan, thanks for the post.
Look, i want to control the velocity of motion for a blob.
I want a random motion with an expression and the speed to be controlled by a slider of an audio amplitude, let’s say.
So,I tried to apply to position of a null (Null6) this one (from motionscript.com :)):
segDur = .5;// duration of each “segment” of random motion
minVal = [0.1*thisComp.width, 0.1*thisComp.height];
maxVal = [0.9*thisComp.width, 0.9*thisComp.height];
seed = Math.floor(time/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
seedRandom(seed+1,true);
endVal = random(minVal,maxVal);
ease(time,segStart,segStart + segDur, startVal, endVal);
After i use for the position of a blob:
s=thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)/10
thisComp.layer(“Null 6”).transform.position.valueAtTime(time+s)
Now is pretty close but it’s still moving where is now sound so i dont know how to get it.
Thanks for any advice.