Re: [PyMOL] Embedding PyMOL

2011-10-06 Thread Jason Ferrara
Hi Dan, I see two issues. First is that you need to call pymol.start() before calling any of the pymol.cmd methods. Second is that PyMOL 1.4 attempts OpenGL shader initialization in start(), even if you're not using the shaders. With PyMOL 1.3 your code below would probably work once you adde

[PyMOL] funny transparent stick rendering when use_shaders = 1

2011-04-04 Thread Jason Ferrara
With shaders enabled, it seems that transparent sticks aren't rendered correctly. The transparency setting seems to be under applied, and way way under applied for stick surfaces directly facing the lighting. Setting sphere_transparency to 0.5 produces nicely transparent spheres, but with stick

[PyMOL] Suggested patch to fix stereo_mode 6 crash in pymol2

2011-01-05 Thread Jason Ferrara
If you set stereo_mode to 6 while running pymol embedded in a widget (via the pymol2 interface) pymol crashes. This is because the code in pymol that figures out which screen lines get the left and right eyes assumes that pymol's OpenGL context was created with glut. The glut calls crash if the

Re: [PyMOL] use PyMOL code in outer tkinter application

2011-01-05 Thread Jason Ferrara
On Dec 21, 2010, at 6:38 PM, Nat Echols wrote: > On Tue, Dec 21, 2010 at 2:42 PM, Jason Ferrara wrote: > I've been using the pymol2 interface to run pymol inside Qt widgets. There > doesn't seem to be any documentation for it, but once you figure it out it > seems to

Re: [PyMOL] use PyMOL code in outer tkinter application

2010-12-21 Thread Jason Ferrara
I've been using the pymol2 interface to run pymol inside Qt widgets. There doesn't seem to be any documentation for it, but once you figure it out it seems to work well. On Dec 21, 2010, at 12:27 AM, Jason Vertrees wrote: > Hi Mike, > > It's possible, but at this point would be more trouble th

Re: [PyMOL] select single state with the mouse?

2010-12-21 Thread Jason Ferrara
e first sele, stored.name = model > > print "User selected model %d" % int(split(stored.name, "_")[1]) > > > This is not ideal, but should get you closer to your solution. > > Cheers, > > -- Jason > > > > > On Fri, Dec 17, 2010 a

[PyMOL] select single state with the mouse?

2010-12-17 Thread Jason Ferrara
If I have a multi state object loaded, and all_states set to on, is there a way to select individual states with the mouse? Or if not at least some way to query which state was clicked in to generate the selection, or to query which state lies under a given x,y position in the view? I'm writing