Re: [PyMOL] NameError: name 'util' is not defined

2019-02-12 Thread Søren Nielsen
Hi Thomas, I tried the wrapper, but it seems it only works once when you change the color. If you try to change again I get this error: Selector-Error: Invalid selection name "BSA_mono". BSA_mono<-- BSA_mono being my loaded filename of course I can do other operations, but coloring does not

Re: [PyMOL] NameError: name 'util' is not defined

2019-02-12 Thread Søren Nielsen
Thanks for the quick answer Thomas! Yes, I will need multiple instances so I will work with the proxy then. Best, Soren On Tue, Feb 12, 2019 at 9:11 AM Thomas Holder wrote: > Hi Soren, > > Very interesting script, thanks for sharing! > > It looks like pymol2.PyMOL() doesn't work with the util

Re: [PyMOL] NameError: name 'util' is not defined

2019-02-12 Thread Thomas Holder
Hi Soren, Very interesting script, thanks for sharing! It looks like pymol2.PyMOL() doesn't work with the util module. It would need to wrap all util functions and pass the "_self" argument with every function call, just like pymol2.cmd2.Cmd does. It works for me if I use

[PyMOL] NameError: name 'util' is not defined

2019-02-11 Thread Søren Nielsen
Hi, I am using pymol with a wxpython interface and everything seems to work, except when I try to change the color of an object using the internal gui, I get a NameError: name 'util' is not defined error... can you see what is the problem here? Best, Soren Here is the script I am using: import