FORUMS: list search recent posts

Linking object rotation to time remap?

FAQ   •   VIEW ALL
 Linking object rotation to time remap? on Dec 1, 2011 at 8:38:30 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)

 Re: Linking object rotation to time remap?on Dec 1, 2011 at 10:12:18 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.

 Re: Linking object rotation to time remap?on Dec 1, 2011 at 3:54:06 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

 Re: Linking object rotation to time remap?on Dec 2, 2011 at 8:10:33 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.