Loading Pml From The Script
1
0
Entering edit mode
12.5 years ago
Adobe ▴ 210

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 • 4.9k views
ADD COMMENT
2
Entering edit mode
12.5 years ago
Adobe ▴ 210

Oh, I found it:

cmd.do('@script.pml')
ADD COMMENT
0
Entering edit mode

thanks for following up on this (just noticed it)

ADD REPLY

Login before adding your answer.

Traffic: 1724 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6