PyExperts:
When inside PyMOL, how do I find out the value of a variable without
using 'set'?
For example, I can type:
set specular, 1
and then I know, specular = 1.
But how do I find out specular's (or ANY variable's) value without
changing it?
Thanks,
Olivier
Hello Olivier,
For PyMOL variables, defined with
set variable_name,variable_value
, you can get it with
get variable_name
For other variables (Python variables), defined like it:
variable_name=variable_value
you can get it with
print variable_name
or use it simply with
variable_name
I hope this will help you.
--
Sébastien Moretti
http://www.igs.cnrs-mrs.fr/
CNRS - IGS
31 chemin Joseph Aiguier
13402 Marseille cedex