Subsections


pymol.macro_run

Image pymol_icon Image document-open

Synopsis

Open and execute the PyMOL macro file.

Defaults

pymol.macro_run(file=None, dir=`pymol')

Keyword arguments

file: The name of the PyMOL macro file.

dir: The directory name.

Description

This user function is for opening and running a PyMOL macro located within a text file.

Prompt examples

To execute the macro file `s2.pml' located in the directory `pymol', type:

[numbers=none]
relax> pymol.macro_run(file='s2.pml')

[numbers=none]
relax> pymol.macro_run(file='s2.pml', dir='pymol')




The relax user manual (PDF), created 2016-10-28.