Re: [PyMOL] refresh molecule display in python script

2011-09-14 Thread Андрей Гончар
So I've tryed to use cmd.refresh() and it has worked! So your script must include the following: cmd.load cmd.refresh [some actions] cmd.load cmd.refresh [some actions] etc. 2011/9/14 Matthias Schmidt : > Hi, not quite the script does the following: > > 1: load a file > 2: modifiy this file using

Re: [PyMOL] refresh molecule display in python script

2011-09-14 Thread Андрей Гончар
So what exactly do you want your script to do? 1. Show loaded file 2. Modify file 3. Show modified file Is it right? 2011/9/14 Matthias Schmidt : > Hi, > > This approach does not work, because file.pdb is written in "do something..." > > Also, if I say "spawn script.py gloabl" instead of "run scr

Re: [PyMOL] refresh molecule display in python script

2011-09-14 Thread Андрей Гончар
Try to do the following: in your script.py from pymol import cmd cmd.load("file.pdb") def script(): do something... cmd.extend("script", script) In this case your pdb will be loaded before the script completes. 2011/9/14 Thomas Holder : > Hi Matthias, > > use "spawn" instead of "run". > > htt

Re: [PyMOL] refresh molecule display in python script

2011-09-14 Thread Thomas Holder
Hi Matthias, use "spawn" instead of "run". http://pymolwiki.org/index.php/Fork Cheers, Thomas On 09/14/2011 02:30 PM, Matthias Schmidt wrote: > Hi, > > I am loading a pdb file in a python script for pymol. > > The script has the following structure: > > def script > do something > cmd.load("

[PyMOL] refresh molecule display in python script

2011-09-14 Thread Matthias Schmidt
Hi, I am loading a pdb file in a python script for pymol. The script has the following structure: def script do something cmd.load("file.pdb") do lot more cmd.extend("script", script) When the python script is completed, the molecule file.pdb is shown in the openGL display, but not before. Ho