Question: Loading Pml From The Script
0
gravatar for Adobe
7.0 years ago by
Adobe200
Russian Federation
Adobe200 wrote:

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 • 2.9k views
ADD COMMENTlink written 7.0 years ago by Adobe200
1
gravatar for Adobe
7.0 years ago by
Adobe200
Russian Federation
Adobe200 wrote:

Oh, I found it:

cmd.do('@script.pml')
ADD COMMENTlink written 7.0 years ago by Adobe200

thanks for following up on this (just noticed it)

ADD REPLYlink written 5.1 years ago by Istvan Albert ♦♦ 80k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 913 users visited in the last hour