You are on page 1of 5

Scripting in VMD

Script: File of intructions


Scripting Lenguage: Programming language that supports scripts

VMD provides embebed scripting languages (Pynthon and Tcl)

BASIC FEATURES OF THE Tcl SCRIPTING INTERFACE IN VMD

Tcl/Tk Scripting Lenguage


Tcl is rich programming leanguage that contains many features and commands

The basics of Tcl Scripting

To execute Tcl commands, you will be using a convenient text console called Tk
Console.

puts

# texto .

expr # operaionces

Remember to hit enter after each line and take a look at what you get after
each input.

It respect the diferrence between capital letter and small letter

Often, one needs to execute a block of codes for many times. For
this purpose,
Tcl provides an iterated loop similar to the for loop in C. The for
command
in Tcl requires four arguments: an initialization, a test, an increment, and
the
block of code to evaluate. The syntax of the for command is:

For

La iteracin: Repeticin de un segmento de cdigo


Cmo realizar una tarea n veces

You might also like