GLOBAL
Prev | Chapter 2. XML elements and attributes | Next

## GLOBAL

### Description

Level: 2nd

Global setting of the movie such as light, mouse, and view. Some parameters of this element are inherited to the scene local setting.

### Parent Elements

WMXML

### Child Elements

ATOM, BOND, RIBBON, COIL, SHAPE, OBJ3D, LABEL, CAMERA, PROTECT, WHEEL, MATRIX, RADIUS, AUTOSCALE

ATOM, BOND, RIBBON, COIL, SHAPE, OBJ3D, LABEL elements are the default setting of these primitives. The settings such as color, radius here define the global default. Setting here is used as the default in all the SCENEs.

### Attributes

light (type:Point3D) = "-1 1 -1"

  Direction of light. Only one directional light is available in wm3d. The inputted direction will be automatically normalized.

arrate (type:Float) = "1.5"

  The rate of automatic rotation in degree/frame. Set to 0 if you want to prevent automatic rotation.

framerate (type:Int) = ?

  The framerate of the flash movie. Default value is determined at the compilation.

play (type:Int) = 0

  After loading scene, scenes are played forward or backward for positive or negative value, respectively. If there is only one scene, this attribute does not make sense.

  You can start playing by typing "p"(forward) or "P"(backward) without setting this option.

  Even when this value is 0, the scenes are automatically played once while loading scenes. To prevent this playing while loading function, set readbackground attribute below.

playrate (type:Float) = 3.0

  The framerate of play. The value means number of the frames (at most) played in a second.

readatonce (type:Int) = 1

  If this value is <= 0, objects in a scene will be loaded step-by-step. Otherwise, a scene is loaded in a breath.

  For a small molecule (small number of objects), this value can be either positive or negative values. But when the molecule is not small or complicated, you should set this value to 0 or negative value. This is because you must wait for some time (several seconds) until the molecule is loaded. See samples 2JDI.swf, 2JDI_readAtOnce.swf and correspondind xml files.

  Notice: If the molecule is too large, the mol cannot be loaded in a breath method due to the 15-seconds limit of flash (i do not know the way to avoid this limitation).

readchainatonce (type:Int) = 1

  If this value is <= 0, chains in a scene will be loaded step-by-step. Otherwise, a scene is loaded in a breath.

  Notice: This parameter is highly experimental.

readbackground (abbr.:bgread,readbg) (type:Void) = false

  If this parameter is set to any value (in other words, if this parameter exists in XML file), wm3d does not play scenes during loading them. Value of this attribute is simply ignored, though you must give dummy parameter. If there is only one scene, this attribute does nothing.

Prev | Up | Next
Chapter 2. XML elements and attributes | Home | CAMERA