MarvinView can execute scripts containing 3D viewing commands delimited by semicolons or newlines. Comment lines start with #. Currently, only the following subset of RasMol/Chime commands is implemented:
ballstick ballstick on ballstick true |
Ball & stick rendering style. This command is Marvin-specific. |
center center atomnocenter [ x, y,
z] centre centre atomnocentre [ x, y,
z] | Defines the center point for the
rotate and zoom commands.
Without argument, the center is set to be the center of gravity.
The argument can be an atom number, or three coordinates specifying
the distance from the center of gravity.
The x, y, z values are in RasMol units
(1/250 Angstrom).
|
cpk |
Synonymous with spacefill . |
delay delay seconds |
Delays the continuation of script execution for the specified number of seconds. Default delay value is 1 second. |
echo text |
Prints a message to the standard output. |
exit |
Exits from the script. In case of nested scripts, it terminates only the current level. |
load molfile |
Loads a molecule file from the specified URL. |
quit |
Exits from the script interpreter. Terminates all nested levels of scripts. |
refresh |
Redraws the current image. In Marvin, this command is not necessary
because the image is automatically refreshed at the beginning of
delay commands and at the end of script. |
reset |
Restores the default viewing transformation. |
rotate x anglerotate y anglerotate z angle |
Rotates about the "x", "y" or "z" axis with the specified angle (degrees). |
script filesource file |
Reads a script from the specified URL. Scripts can be nested without any depth limitation in Marvin. |
spacefill spacefill on spacefill true |
Atoms are represented by balls, bonds are not drawn. |
sticks sticks on sticks true |
Sticks rendering style. This command is Marvin-specific. |
wireframe wireframe on wireframe true |
Bonds are represented by lines in wireframe mode. |
wireknobs wireknobs on wireknobs true |
Wireframe with knobs. This command is Marvin-specific. |
zap |
Deletes molecule and resets parameter variables to their default values. |
zoom percentage |
Magnifies to the specified value. |
Warning: RasMol support is incomplete and experimental.