Module: Viewer Commands Lock ()

Description:

The Viewer Commands Lock module allows you to disable selected TCL commands that manipulate the 3D viewer window (e.g., commands found in saved projects or demo scripts). This module can be created by selecting Animations And Scripts / Viewer Commands Lock from the main window's Project > Create Object... menu.

When creating a Viewer Commands Lock module, all viewer commands that are selected in the Lock port are immediately disabled. When destroying the module all viewer commands are automatically re-enabled. One cannot use multiple Viewer Commands Lock modules at one time.

The Viewer Commands Lock module is resistant to the Edit / Remove All command, so it will not be automatically deleted when a new project is loaded.

Ports:

Lock

This port allows you to select the individual viewer commands to be disabled. If an option is checked, the corresponding command is disabled.

bg: disable all "viewer ... setBackground..." commands
size: disable "viewer ... setSize" command
pos: disable "viewer ... setPosition" command
stereo: disable "viewer ... setStereo" command
deco: disable "viewer ... decoration" command
cam: disable all "viewer ... setCamera..." commands

Further links
Script Module documentation for script programming.