PDA

View Full Version : get/set object rotation


Dogfish
09-07-2008, 07:28 PM
Using Cscript, I get the rotation, R, of an object then set the rotation of the object to R. I expect the object not to move, but it flips 90 degrees. (See attached file).

In fact, each time I get the rotation and set the same rotation back, I get a different value ...

Why?

Radishworks
09-08-2008, 12:08 PM
I'm not exacly sure what the bug is here yet (there is one), but there is a work around. R-Click > Mesh and Line tools > Reset Objects Transform Axis and all is good.

Mike

PS, Its good to see you are giving the new CScript code a workout.

Dogfish
09-08-2008, 12:51 PM
Thanks for that.
I'm having lots of fun with Cscript & c++.