Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Stop rotation then start again wull null

  • Stop rotation then start again wull null

    Posted by Zach Meissner on December 17, 2008 at 4:40 pm
    comp("Ball").layer("Disco Ball Surface").effect("CC Sphere")("Rotation Y")*-1+100

    I have a sphere that is rotating. I have a null object that is connected to several text layers and the null is linked to the rotation value of the sphere. I need the sphere to keep spinning but the null to stop (so the text is still), then start again. I know this is probably a checkbox control, but i cant figure out how to insert it into the rotation expression of my null. Is there a way i can keyframe the null to slow down as the text comes to a stop? (if not, no big deal) Thanks for your help!

    Dan Ebberts replied 17 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    December 17, 2008 at 5:31 pm

    You could do it with a couple of layer markers on the null. This example follows the sphere’s rotation until the first layer marker, stops until the 2nd marker, then starts rotating again:

    r = comp(“Ball”).layer(“Disco Ball Surface”).effect(“CC Sphere”)(“Rotation Y”);
    if (marker.numKeys > 1){
    t1 = marker.key(1).time;
    t2 = marker.key(2).time;
    if (time < t1){ 100 - r; }else if (time < t2){ 100 - r.valueAtTime(t1) }else{ 100 - r.valueAtTime(time - (t2 - t1)) } }else{ 100 - r; } Dan

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