ScriptSpot

Forum topic · General Scripting

rotation

By berend · 2007-03-08

Description

Hey,

I've been trying to get an object rotate round it's own y axis. I thought it would be simple, but i can't get it to work propperly.

I just need a working code that can rotate an object in small steps
around it's own y axis. It has to be an absolute rotation. from about
-10 degrees up to 190 degrees. in a smooth way.

 

i hope some-one can help

Comments (2)

arketip · 2007-03-11

I am not completely sure what you are looking for exactly but this could help you:

for i = 1 to 36 do (obj.transform = rotateYmatrix 10 * obj.transform ; max views redraw)

It is a local Y rotation...

> I just need a working code that can rotate an object in small steps

> around it's own y axis. It has to be an absolute rotation.

You look for an absolute transformation or a local transformation ("its own Y axis") ?? It is not clear...

mobeen · 2007-03-11

try a search in maxscript reference on Applying Standard Transformations.