Plz Help, How to bank a camera in Script?
butaixianran
Posts: 161
How to bank camera in script? Please help.
I created a camera in script like this :
//Add new camera
var cam = new DzBasicCamera();
cam.setName( "cameraName" );
Scene.addNode( cam );
var tick = Scene.getTimeStep();
then, I set the X,Y,Z rotation with Rotation Control (XRotControl, YRotControl and ZRotControl)
But I found that operate ZRotControl is not bank!
And when I banking this camera in DAZ View (ctrl + right click + drag), all the X, Y, Z rotation are changing.
Is there a way to do this in script ?
Thanks!
Comments
Yes, there is... quaternions.
-Rob
Thanks! This helps a lot!