Previous: Key Binding, Up: Scripting


3.10.5 User-Defined Functions

“Power users” of Coot might also like to write their own functions that occur after picking an atom (or a number of atoms)

(user-defined-click n_clicks udfunc)

define a function func which runs after the user has made n_clicked atom picks. func is called with a list of atom specifiers - the first member of which is the molecule number.