Jonas Espinoza
Forum Replies Created
-
psuedocode wise it would be something like
im not fully up on array math – but would it be multiplying the luminance of the BG/source layer against the shadow value of the tint for the FG layer?
with that be math.mul()?
i guess it could be sampling R,G or B, and then evenly apply that [x,x,x] to the tint color
-
ahh thanks dan
I came up with the index part, but the Math.round is good stuff
-
hey thanks
yeah thats kinda what i have
i am wondering how now i can add a random to an array value. in this case “p1” – i know how to generate a random value, but whats the procedure to add randomization to x and y of the 0,1,2 array and how would i add that to p1, which seems like it contains those 3 values inside of it
i am trying to paste the code into the code box, let me know if you cant see it
seedRandom(index+1, true);
r = random()*4;p1=position.key(1).value;
p2= position.key(2).value;
duration= thisComp.layer("EXPRESSION CONTROLLER").effect("duration")("Slider")+r;
ease(time, inPoint, duration, p1, p2);
-
hold on, i will post with better questions. finding some good stuff in the manual
-
thats what i did. somehow i got it to work. had to pull out a piece of paper and really think through what was happening in the expression.
-
this is what i’m trying – not exactly doing anything…
L= thisComp.layer(“marker null”);
t=time-inPoint;
m_t=L.marker.key(1).time;
N=thisComp.layer(“dropper”);
dropper=thisComp.layer(“dropper”).effect(“drop”)(“Slider”).valueAtTime(N.inPoint+t);
delay = thisComp.layer(“dropper”).effect(“color delay controller “)(“Slider”);
b = thisComp.layer(“dropper”).effect(“bounce”)(“Slider”).valueAtTime(m_t+(index*delay));d=(value[1]-dropper)+b;
[value[0],d,value[2]]
-
question, i am already using the inpoint to control the items dropping
is there a way to have a marker on the control null be what the delay is comparing itself to? does that make sense?
so i can have a marker on the null at say 15:00 and starting then a bunch of the items turn red in a cascading way and i can slide the marker as needed?
thanks so much dan
-
figured out a workaround on my own… still trying to remember that piece of essential scripting skill to neutralize the individual positions of elements referencing a control null
heres what i did – just had a slider animating and using it as a negative number. then put on the “inertial bounce” script thats floating around on the slider keys so everything bounces down. now i might add another varable with a random seed (#+index) to make each one fall a little different.
t=time-inPoint;
N=thisComp.layer(“dropper”);
dropper=thisComp.layer(“dropper”).effect(“drop”)(“Slider”).valueAtTime(N.inPoint+t);
d=value[1]-dropper;
[value[0],d,value[2]]
-
so my challenge in figuring this out, is i know its like a simple minus or plus operation to negate out the actual position of each layer to make them follow the control null, but keep their placement in the comp. all that needs to happen is for them to fall vertically down and land where i placed them, with controllable delay in the script
-
do you have a tip bucket at your site? thank you so much for lending your brain