Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Value Off >On >Off

  • Value Off >On >Off

    Posted by Ilya Sire on January 5, 2016 at 10:57 am

    Hi forum,

    I have a situation to animate value opacity 0>100>0 when rotation animate any 90>0 or 180>0, so opacity will be 100 when rotation at half value rotation. Currently i make it manual keyframed 🙁

    Thank you
    Ilya

    Ilya Sire replied 10 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    January 5, 2016 at 2:52 pm

    For 90 degrees:

    Math.abs(Math.abs(transform.rotation)%90-45)/45*100

    For 180 degrees:

    Math.abs(Math.abs(transform.rotation)%180-90)/90*100

  • Ilya Sire

    January 5, 2016 at 4:57 pm

    Thank you very for the solution Kalle. It worked. I add this to make 0>100>0
    \Thanks 🙂

    100-Math.abs(Math.abs(transform.rotation)%90-45)/45*100

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy