RasMol Scripts
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 |
Ball & stick rendering style. |
center |
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 |
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 angle |
Rotates about the "x", "y" or "z" axis with the specified angle (degrees). |
script file |
Reads a script from the specified URL. |
spacefill |
Atoms are represented by balls, bonds are not drawn. |
sticks |
Sticks rendering style. |
wireframe |
Bonds are represented by lines in wireframe mode. |
wireknobs |
Wireframe with knobs. |
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.