11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• 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 givenaxis.• light numer pos: Return current position.• light numer pos default: Return default position.• light numer pos { x y z}: Set light position.8.3.15 logfileTurn on/off logging a <strong>VMD</strong> session to a log file. This will create a log file with commands forall 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 stateof the <strong>VMD</strong> display, so straight Tcl commands are not saved. All of the core <strong>VMD</strong> commands willwrite to the log.• filename: Turn on logging to filename.• console: Turn on logging and direct it to the <strong>VMD</strong> text console window.• off: Turn off logging.To write log information to the file ‘off’, use the file name ‘./off’.8.3.16 materialThis 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 thefollowing order: ambient, specular, diffuse, shininess, opacity. If the specified material hasnot been defined, nothing is returned.• add name: create a new material with the given name. The new material will start with thesettings for Opaque. If the name already exists, no new material is created.• add copy name: create a new material copied from the selected material name.• rename oldname newname: rename the given material. The command will fail if the nameis already used.• change property name value: Change a material property of the material named name tothe value value. property must be one of the following:102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!