[PyMOL] Is it Possible to Redirect PyMOL Output?

2014-01-24 Thread Wilson Omesiete
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

[PyMOL] Capture PyMOL Output When Launched From Python

2013-12-06 Thread Wilson Omesiete
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

Re: [PyMOL] Reset Default Carbon Color

2013-04-11 Thread Wilson Omesiete
)] 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

[PyMOL] Reset Default Carbon Color

2013-04-10 Thread Wilson Omesiete
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

[PyMOL] API Copy Screen Image to Clipboard

2013-03-15 Thread Wilson Omesiete
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

[PyMOL] Use PyMOL Namespace without Initializing

2013-02-15 Thread Wilson Omesiete
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

Re: [PyMOL] Managing Viewport Location

2013-02-10 Thread Wilson Omesiete
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

[PyMOL] Managing Viewport Location

2013-02-08 Thread Wilson Omesiete
() 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