Re: [PyMOL] what is wrong on my using centroid.py

2015-11-20 Thread Fotis Baltoumas
Hello, Just remove the following from the script, since it is, apparently, obsolete: if int(move): cmd.alter_state(1, selection, "(x,y,z)=sub((x,y,z), centroid)", space={'centroid': centroid, 'sub': cpv.sub}) Or just download again the script, they already

Re: [PyMOL] what is wrong on my using centroid.py

2015-11-19 Thread Osvaldo Martin
Hi Smith, There was an error in script, incidentally, I introduce the error, but now is fixed. Please download again the centroid.py script. Cheers, Osvaldo. On Fri, Nov 20, 2015 at 3:00 AM, Smith Liu wrote: > Dear All, > > When I run the centroid.py, I have the following error message: > "Nam

[PyMOL] what is wrong on my using centroid.py

2015-11-19 Thread Smith Liu
Dear All, When I run the centroid.py, I have the following error message: "NameError: global name 'move' is not defined". My centroid.py script downloaded (have I misdone or miseddited something?) is as following. Will you please tell me how to solve the error message issue? Smith --- Se