Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking object rotation to time remap?

  • Linking object rotation to time remap?

    Posted by Mikko Kovasiipi on December 1, 2011 at 8:38 am

    Hello.

    I’m doing a product carousel. I have some products around Null which is in the middle of the products. I have also rendered 360° sequences of the products. Now I would like to link the Nulls rotation to the products time remap so when I rotate the Null the products will also rotate. I also need to turn the faces of the product layers so they are always towards the camera. Could somebody give me a little help with this?

    Thanks

    Mikko

    (sorry my english, I have morning brains and it’s not working full speed)

    Mikko Kovasiipi replied 14 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Mikko Kovasiipi

    December 1, 2011 at 10:12 am

    Turning layers towards camera is no problem. I linked the rotation and multiplied it by -1. But the time remapping is a bit problem. The 360° sequences are 356 images and if I rotate the null for example to 45° I need the time remap to be at 45. Also if the Null is -125° I need the time remap to be at 125.

  • Dan Ebberts

    December 1, 2011 at 3:54 pm

    I would think it’s going to look like this:

    r = thisComp.layer(“Null 1”).transform.rotation%360;
    if (r < 0) r += 360;
    framesToTime(r)

    Dan

  • Mikko Kovasiipi

    December 2, 2011 at 8:10 am

    Thanks Dan!

    It doesn’t work exactly right, but close enough. If i turn the Null to the right, it’s going ok, but to minus side Time remapping starts changing after 50° or something.

    I made a little chance to the rotation part:
    r = thisComp.layer(“Null 1”).transform.yRotation%360*-1;
    if (r < 0) r += 359; framesToTime(r) Thank you.

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