Acrobat User Community

Limiting the rotation of a model in a 3D PDF

By Tony DeYoungJune 24, 2006

Using a 3D JavaScript you can limit the orientation and rotation of the the camera to control your models. The following examples show how to do this:

Constrain Camera JavaScript
The Constrain Camera javascript is a 3D javascript to prevent the camera from tilting to the side (positive Z-axis is always up). It also scales up or down the "Walk" tool by a settable factor.
Download [JS: 5 KB]

Camera Rotate JavaScript

The Camera Rotate javascript an advanced script that replaces the default camera rotation functionality with a version that makes the model feel like it has some mass.
Download [JS: 16 KB]