-
if expression
hey
i’m not an expression expert but i know a little bit and what i dont know i get from this great forum.
at the moment i got an scale over time expression.
its working but i want to have more control over it.
i want to decide between scale from “in- to outpoint” and “scale over a specific time” with a simple checkboxthis is my code
how can i get the the solution from this if express into my “scaleUpTime” ?
scaleUpTime = if (effect("Checkbox")("Checkbox") == 1) a
else aa ;this doesnt work.
i had this question very often but always found a way to do it in a different wayi’m pretty sorry for my bad english 🙁
per = value[0,0]+(value[0,0]/100)*effect("Scale over Time Percent")("Slider");
a = effect("time")("Slider") ; //time control via slider
aa = outPoint-inPoint;if (effect("Checkbox")("Checkbox") == 1) a
else aastartScale = value[0,0]; // percent of Scale at start
endScale = per ; // percent of Scale at end
scaleUpTime = 3; // time to scale up from inPoint in secondss = [endScale - startScale] /scaleUpTime;
sx = startScale + ((time-inPoint) * s);ss = clamp(sx,endScale,startScale);
[ss,ss]