[PyMOL] Fwd: Iterate Script Over States

2009-09-29 Thread Tsjerk Wassenaar
... This should've gone to the list ... :S TAW -- Forwarded message -- Hi Warren (e.a.), First, as a side note, your first post had 'for state in cmd.count_states():' whereas it seems it should read 'for state in range(cmd.count_states()):'. I find myself doing something simil

[PyMOL] DepthQ configuration in a classroom setting

2009-09-29 Thread Roger Rowlett
Has anyone on the board configured a DepthQ projector for classroom use, i.e. using a ceiling-mounted projector. Our IT department has recently installed a DepthQ projector in a classroom-type setting, and it displays stereo Pymol images for about 20 seconds, then loses sync. My configuration i

Re: [PyMOL] DepthQ configuration in a classroom setting

2009-09-29 Thread Warren DeLano
Roger, That's a bit odd: usually it either works or it doesn't. Working for 20 seconds at a time may indicate defective hardware (projector, emitter, graphics card, connector, dead battery, etc.). But as a first test, pease try using some other stereo-3D-capable software (e.g. VMD or Chi

Re: [PyMOL] Iterate Script Over States

2009-09-29 Thread Warren DeLano
Tsjerk, This will only provide a minor speedup, but the alter* and iterate* commands do take a "space" argument with a dictionary to use in lieu of PyMOL globals(). my_dict = {'L':[]} cmd.iterate_state(1, 'all', 'L.append( (x,y,z) )', space=my_dict) print len(my_dict['L']) etc. Cheers, Warre