Steve Robinsons
Forum Replies Created
-
Wow, so simple. Thank you so much!!
-
Hi Robert,
I need to draw the triangle path to check if an object is inside/outside the green one.
I want to know how to establish this diagonal measures into ae js
Thank you so much!
-
Hi Andrei,
Doesn’t matter the final result, I just want to know how to set up the diagonal limit in js code.
Thanks!
-
Hello again Dan,
How can I simplify this code? It is similar to the one last sent.
Thank you so much, I’m learning a lot!
rot = transform.rotation;
tsx = 360;
// 1. 360
if(rot>=-30 && rot<=30) ease(rot,-30,30,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=60 && rot<=120) ease(rot,60,120,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=120 && rot<=150) effect("Color Control 2")("Color")
else if(rot>=150 && rot<=210) ease(rot,150,210,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=240 && rot<=300) ease(rot,240,300,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=300 && rot<=tsx-30) effect("Color Control 2")("Color")
// 2. 360
else if(rot>=tsx-30 && rot<=tsx+30) ease(rot,tsx-30,tsx+30,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx+60 && rot<=tsx+120) ease(rot,tsx+60,tsx+120,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx+120 && rot<=tsx+150) effect("Color Control 2")("Color")
else if(rot>=tsx+150 && rot<=tsx+210) ease(rot,tsx+150,tsx+210,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx+240 && rot<=tsx+300) ease(rot,tsx+240,tsx+300,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx+300 && rot<=tsx*2-30) effect("Color Control 2")("Color")
// 3. 360
else if(rot>=tsx*2-30 && rot<=tsx*2+30) ease(rot,tsx*2-30,tsx*2+30,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx*2+60 && rot<=tsx*2+120) ease(rot,tsx*2+60,tsx*2+120,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx*2+120 && rot<=tsx*2+150) effect("Color Control 2")("Color")
else if(rot>=tsx*2+150 && rot<=tsx*2+210) ease(rot,tsx*2+150,tsx*2+210,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx*2+240 && rot<=tsx*2+300) ease(rot,tsx*2+240,tsx*2+300,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx*2+300 && rot<=tsx*3-30) effect("Color Control 2")("Color")
// 4. 360
else if(rot>=tsx*3-30 && rot<=tsx*3+30) ease(rot,tsx*3-30,tsx*3+30,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx*3+60 && rot<=tsx*3+120) ease(rot,tsx*3+60,tsx*3+120,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx*3+120 && rot<=tsx*3+150) effect("Color Control 2")("Color")
else if(rot>=tsx*3+150 && rot<=tsx*3+210) ease(rot,tsx*3+150,tsx*3+210,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
else if(rot>=tsx*3+240 && rot<=tsx*3+300) ease(rot,tsx*3+240,tsx*3+300,effect("Color Control")("Color"),effect("Color Control 2")("Color"))
else if(rot>=tsx*3+300 && rot<=tsx*4-30) effect("Color Control 2")("Color")
else if(rot>=tsx*4-30 && rot<=tsx*4+30) ease(rot,tsx*4-30,tsx*4+30,effect("Color Control 2")("Color"),effect("Color Control")("Color"))
-
Nice! Thank you so much 😉
-
Thank you!! It works perfectly. Why did you write &90?