[PyMOL] is there an efficient way to alter all coordinates?

2007-03-28 Thread William Sheffler
Hi. I'm interested prototyping some interactive molecular modeling and simulation code using pymol. I know one can change the atomic coordinates wholesale in simple ways via alter_state (like x=x+1). Is there an efficient way to change all coordinates to arbitrary values (like coordinates output

Re: [PyMOL] question on "state"

2007-03-28 Thread Tsjerk Wassenaar
Hi David, The state sort of refers to the frame or model in case of a multiframe/multimodel (multistate) system. You don't need to use it with set, it's optional. Just note that "dash_length" and dash_length are quite different things. Best, Tsjerk On 3/28/07, David Shin wrote: This regards

Re: [PyMOL] question on "state"

2007-03-28 Thread DeLano Scientific
Will, The easiest approach, short of Python programming, is to temporarily load a new pdb file with updated coordinates and simply update the existing object before deleting the original. load original.pdb unset auto_zoom # then repeat the following as often as necessary set suspend_updates loa

Re: [PyMOL] is there an efficient way to alter all coordinates?

2007-03-28 Thread Will Sheffler
Thanks for the idea Warren! I'd actually be more than happy to get my hands dirty in the actual code but I wasn't able to figure out how to change coords. I tried changing the coords in the chempy atoms e.g. for a in cmd.get_model("myprot").atoms[:1]: print a.coords a.coords[0

Re: [PyMOL] is there an efficient way to alter all coordinates?

2007-03-28 Thread Will Sheffler
Thanks for the idea Warren! I'd actually be more than happy to get my hands dirty in the actual code but I wasn't able to figure out how to change coords. I tried changing the coords in the chempy atoms e.g. for a in cmd.get_model("myprot").atoms[:1]: print a.coords a.coords[0