Hi,
I wanted an easy way to view models in the round with minimal mouse effort, so I came up with this turntable zscript.
Press the button or SHIFT+‘R’, and your model will rotate around the apparent Y axis. Move the mouse, don’t click, to the right or left of the model and it will rotate in that direction. Also, the farther you move away from center screen, the faster the model will rotate. Press the mouse button to end the rotation.
Since there is a problem with gimbals lock when attempting to rotate around the actual Y axis, the model is temporarily turned on the x axis and rotated on the Z. After a minor blip, it will appear that the model is rotating on the Y. When you end the script, the model is rotated back.
One thing I couldn’t figure out the way I wanted, was to have the model remain in the orientation of where the turntable is stopped . This again seems due to the gimbals lock on Y–any number from-89 to 89 will leave the model upside down. so, for now I have it face forwards again.
If any of you Zscripters want to attack this issue or improve on this in any way, I’d certainly like to see it.
Otherwise, sit back, and admire your work as it spins before you.