next up previous contents
Next: TCL commands Reference Index Up: Graphics2D Previous: Surface View   Contents

Script Dialog

When you load this module, a 2D menu appears on the Script Dialog.

Figure 17: Graphics2D menu
\begin{figure}\includegraphics[height=2cm]{images/graph2D_menu.ps}
\end{figure}

Those three new functions respectively creates a 2D scene, 2D camera and 2D slice camera.

By example, if you select the menu 2D Camera, and create a new camera, the name of this new camera will appear in the Message Box of the Script Dialog. Later, you will invoque this object with that name.
If any 2D Scene still doesn't exist, it will create a new 2D Scene and the camera created will be looking at the new 2D Scene.

If you want to explicitely specify the 2D Scene, you will have to use appropriate TCL commands.

A way to do this could be to enter the following commands in the Command Box of the Script Dialog:

C: new scn2D
M: scn2D1
C: new cam2D -scene scn2D1
M: cam2D1

When you want to know which scn2D a cam2D is watching, use the TCL function:

C: cam2D1 -scene
M: scn2D1

It returns the name of the 2D Scene.


next up previous contents
Next: TCL commands Reference Index Up: Graphics2D Previous: Surface View   Contents
Jean-Didier Lemarechal 2002-02-14