ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: ref rotation

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


yikesmikes
Re: ref rotation
on Feb 1, 2007 at 7:00:38 pm

It would be nice to see the expression you're working on, but methinks you need to use "%" the modulus operator, it gives the remainder.

In this expression, a Blue Solid's rotation is the same as the Medium Red Solid's rotation (just by pickwhipping the Blue Solid's rotation to the Medium Red Solid's rotation.

thisComp.layer("Medium Red Solid 1").rotation

So "-3 x 0.0" on the Red gives "-3 x 0.0" on the Blue.

But if you add %360 to the expression you get what you are after:

thisComp.layer("Medium Red Solid 1").rotation%360

The 360 tells it what to divide by, and then gives the remainder.

So "-3 x 0.0" on the Red gives "0 x 0.0) on the Blue.


Posts IndexRead Thread 


Current Message Thread:
  • ref rotation by alknowshow on Feb 1, 2007 at 4:51:48 pm
    • Re: ref rotation by yikesmikes on Feb 1, 2007 at 7:00:38 pm





© 2020 CreativeCOW.net All Rights Reserved
[TOP]