Next: mdffi
Up: Tcl Text Commands
Previous: logfile
Contents
Index
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, mirror, 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.
- 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 name is already used.
- change property name value: Change a material property
of the material named name to the value value. property
must be one of the following:
- ambient
- specular
- diffuse
- shininess
- mirror
- opacity
- delete name: Delete the given material.
Next: mdffi
Up: Tcl Text Commands
Previous: logfile
Contents
Index
vmd@ks.uiuc.edu