I am using...
import __main__, os
os.environ['PYMOL_PATH'] = C:\Python27\PyMOL
__main__.pymol_argv=[pymol,-qx]
import pymol
pymol.finish_launching()
... to launch PyMOL from another Python based program that has it's own GUI.
Is it possible for me to reroute the output from PyMOL to a file or
Is it possible to capture the output stream from PyMOL when it is launched
from a Python script with...
import os, __main__
os.environ['PYMOL_PATH'] = C:\Python27\PyMOL
__main__.pymol_argv=[pymol, -qx]
import pymol
pymol.finish_launching()
I see that an IDE can do this. Is there a way for me
)]
i += 1
python end
# initialize (or reset) colors
c = colit()
# load files and color them
load file1.pdb
cmd.color(c.next(), elem c)
load file2.pdb
cmd.color(c.next(), elem c)
# ...etc
Hope it helps,
Tsjerk
On Wed, Apr 10, 2013 at 9:03 AM, Wilson Omesiete womesi
I noticed that the default carbon color for loaded objects is set to cycle
from green to pink and then repeat to differentiate models. I have a lot of
models being loading and deleted within one session, and it would be very
useful to be able to reset that cycle, So that the first model after a
Hello,
Is it possible to reproduce the functionality of the Copy Image to
Clipboard option from the edit menu through python? I see that the
cmd.png(filename) function can write the file to the disk, but it would
be useful to take clipboard screenshots without all of the GUI visible.
--
Wilson
Is it possible to use PyMOL commands in a class definition before
initializing PyMOL?
I attempted to use from pymol import cmd, and later initialize PyMOL
with...
__main__.pymol_argv=[pymol,-qx -X,PYMOLX,-Y,PYMOLY]
import pymol
pymol.finish_launching()
... and PyMOL does delay launching, but
Thank you for noticing my sending mistake, Takanori.
This
import os, __main__, wx
os.environ['PYMOL_PATH'] = C:\Python27\PyMOL
pyMolX=300
pyMolY=500
__main__.pymol_argv = [ 'pymol', -qxX,pyMolX,-Y,pyMolY] # Quiet, no ext
GUI, pos(pyMolX,pyMolY)
import pymol, pymol.cmd
()
app.MainLoop()
...to load PyMol without the external GUI in quiet mode. I tried passing
-qxX 30Y 50 in argv, but that change causes PyMol to load forever, also
that would only give control over the initial position if it worked.
--
Wilson Omesiete
School of Biochemistry
Georgia Institute