This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Loading Pml From The Script

I'd like to load script.pml:

select P, resname P
alter P, vdw=5
color red, P

in the script:

# Importing the PyMOL module will create the window.
import pymol

# Call the function below before using any PyMOL modules.
pymol.finish_launching()

from pymol import cmd

In the interactive mode, that is from the runnting pymol - I can load script.pml with

 @script.pml

But I can't find the way to do the same from python script. That is I can't find the @'s name in the cmd module.

pymol

1 answer

Oh, I found it:

cmd.do('@script.pml')

thanks for following up on this (just noticed it)

Log in to answer this question.