[PyMOL] (raw) input parsing in python shell

2005-09-19 Thread Indraneel Majumdar
Hi, I am having a problem passing arguments to my function from the python shell (works fine when arguments are put on the shell from where python was started using raw_input() ) I want to do this: press ctrl-S to start a function input a line of text on the python shell function stores this tex

RE: [PyMOL] Global vars in Plugin name space?

2005-09-19 Thread Warren DeLano
Andreas, The trick here is that PyMOL symbols and the PyMOL command line operate in the pymol namespace, whereas Python modules and plugin each operate in their own "global" namespace. Try the following in your plugin: import pymol print pymol.colorDict Cheers, Warren -- Warren L. DeLano, Ph

[PyMOL] Macros...

2005-09-19 Thread Simon Kolstoe
Hi everyone, sorry for perhaps an obvious question, however the pymol wiki doesn't seem to be helping me: I am trying to run the script draw_cell.py which requires cctbx. I followed the instructions on http://www.pymolwiki.org/index.php/CCTBX entitled "Roger Dodd's Solution", installing ever

Re: [PyMOL] Global vars in Plugin name space?

2005-09-19 Thread Ezequiel H Panepucci
Andreas Henschel wrote: Is it the only possibility to put all functions > that share memory in the same plugin? no. you can do the following: from pymol import cmd,stored stored.colorDict = { 'blue': '/1ewf//A/1-217 and not hetatm',

[PyMOL] Global vars in Plugin name space?

2005-09-19 Thread Andreas Henschel
Hi all, I wrote some functions (usually loaded via .pymolrc.py) that establish some information which I would like to use from Plugins, too. In particular, everytime a PQS/PDB protein complex is loaded, I retrieve SCOP data and color domains accordingly. I would like to maintain a dictionary t