Darren Hardaway
Forum Replies Created
-
I think hes looking for this dan, your random motion script rewritten for it to work on color:
segDur = .5;// duration of each “segment” of random motion
minVal = [0,0,0,1];
maxVal = [1,1,1,1];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);BTW full kudos to Dan for writing the expression, I just changed two lines so it would affect color. Is this what you were looking for?
-
Okay, so it goes by the factor of After Effect’s time, uses pixels as units of measurement?
-
Thanks a bunch, works like a charm!
-
try to find a way to call the puppet starch pins, if you are trying to do what you think you are doing. The puppet starch pins are used to tell how much of the mesh is affected by the pin, so if it can be called you could control any amount of the mesh. If it works you gotta show it!
-
Hey, whats that little bit there at the end?
.speed
how does that work?
-
Assuming the speed of the object is controlled by it’s position or anchorpoint transformation use the pickwhip to call this value to the other layers scale property. The pickwhip is the little swirly button that appears when you open the expression editor of a property. Click and drag it to the position or anchorpoint value of the “speed” layer and then turn it into a variable, then call the way you want the speed to affect the scale. For example, if the object were to go from the left to right side of the comp you could make the scale of the object increase and decrease from 0 to 100 in a loop like this:
x = thisComp.layer(“speed”).transform.position;
Math.abs(Math.sin(x)*100) -
Randomly position the index of the layers. Although randomly arranging the start point of a bunch of one frame layers would be kinda cool too. 🙂
-
hehehe, its funny how if you click the layer itself you can get into the keyframe assistant tab but not when you click on a parameter. Thanks for the tip tho, didn’t think to look there.
-
Darren Hardaway
June 6, 2009 at 5:50 pm in reply to: Changing amount of movement (Sliders, Nulls, Trackers)Well, I haven’t actually worked with markers before, but I’m pretty sure you just need the position of the markers to accomplish this.
Come to think of it, I haven’t used a tracker either. 😛 But your basically saying move tracker from point A to point B 100 pixels only along x-axis. You also want a percentage slider. Start by holding the slider’s value with thistemp = effect(“Slider Control”)(“Slider”)/10;
if(temp<=0){0}; if(temp>100){100}If you have a set start and stop time on the timeline, this could work
start = 1;
end = 2;
amount = thisComp.layer(“Null 1”).effect(“percent”).param(“Slider”);
x = linear(time,1,2,value,value+amount);
[x,value[1]]So thats saying as time approaches one sec, hold original value, and as time moves from 1 to 2 sec increase value by percentage null. Hope this helps!
-
hahaha that makes sense. Thats nice to know that you can call the layer’s width and height like that, and its logical. Thanks for the help!