Download VMD User's Guide
Transcript
9.3.14
light
There are four light sources, numbered 0 to 3, which are used to illuminate graphical objects. They
are point sources located at infinity, so setting their positions places them along a ray from the
origin through the given point.
• num: Return the number of lights available.
• light number on: Turn a light on.
• light number off: Turn a light off.
• light number status: Return the pair on/off highlight/unhighlight
• light number rot < x | y | z > angle: Rotate a light (at infinity) angle degrees about a given
axis.
• light numer pos: Return current position.
• light numer pos default: Return default position.
• light numer pos { x y z}: Set light position.
9.3.15
logfile
Turn on/off logging a VMD session to a log file. This will create a log file with commands for
all the actions taken during the session. The log file may be played back later by using the ‘play’
command or the Tcl ‘source’ command. The only actions recorded are those which change the state
of the VMD display, so straight Tcl commands are not saved. All of the core VMD commands will
write to the log.
• filename: Turn on logging to filename.
• console: Turn on logging and direct it to the VMD text console window.
• off: Turn off logging.
To write log information to the file ‘off’, use the file name ‘./off’.
9.3.16
material
This set of commands is used to create new material definitions and modify existing ones.
• list: Return a list of the available materials
• settings name: Return a list of the five material settings for the material of the given name.
These settings take on floating point values between 0 and 1. The values are returned in the
following order: ambient, specular, diffuse, shininess, opacity. If the specified material has
not been defined, nothing is returned.
• add name: create a new material with the given name. The new material will start with the
settings for Opaque. If the name already exists, no new material is created.
108