Acrobat 3D Corner
Can I add views using the CameraRotate javascript?
Dear 3D expert,
I'm using the CameraRotate.js [JS: 16 KB]   from the 3D Resources page, and I want to set different views from the Menage views. When i activate the selected view from a button and move the object (with CameraRotate.js enabled), the view return to the position set from the camera before the button is clicked.
Is possible to add views with the CameraRotate.js?
Dear Dan,
Yes, it is possible. but CameraRotate.js overrides the default camera movement and view management. If you want to save views you have to set the parameters yourself.
//Example code (untested) //Add this to the cameraRotate.js //Angles should be in radians var CameraView1 = new CameraPosition(new Vector3(0,0,0), 0.7, 0, 10);
//Add this code to a button var context = getAnnots3D(0)[0].context3D; context.CameraController.setCameraPos(CameraView1);
<< Back to Ask an Expert main menu.







