ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Rotating objects around Null Gimbal Lock problem

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


Nick Huskey
Re: Rotating objects around Null Gimbal Lock problem
on Feb 20, 2013 at 6:07:21 pm

I can change the expression to effect the yRotation like below. The only problem I face with that is after the Y rotates past 360˚ I don't know how to have the expression reflect this and still work since now it shows a 1x+0.0˚.

I also tried to plug in multiple minDeg and maxDeg like this:

minDeg = 70; 200;
maxDeg = 150; 270;

But that is not the right format because it did nothing.

Any help with this problem would be appreciated!

minDeg = 70;
maxDeg = 150;
easeDeg = 15;
wheel = thisComp.layer("Rotate Control").transform.yRotation;
if(wheel < (minDeg+maxDeg)/2)
ease (wheel,minDeg,minDeg+easeDeg,50,0)
else
ease(wheel,maxDeg-easeDeg,maxDeg,0,50);


Nick Huskey
CG Artist


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]