RotationMatrix On The Clock

Hi people,

I’m working on a animation with python scripts, and I really need some help on math stuff.

I made a clock, and the moving pointers are python developed, and they work like a charm. But I need some more complex: I need to know when seconds pointer is between 30sec and 45sec. First I tried by object angle, but couldn’t do that using the RotationMatrix.

Can somebody help me?

the basic move code

rot = Mathutils.RotationMatrix(-0.1, 4, ‘z’)

sec = Object.Get(‘Seconds’)
sec.setMatrix(rot * sec.matrix)

Thanks a lot!