[Chimera-users] Getting measure distance value
goddard at sonic.net
Wed Aug 22 10:23:30 PDT 2018
runCommand() invokes typed user commands and does not return values and unfortunately the measure distance code in
(the distance() and report_distance() functions) are not well written for calling directly from Python. Your best approach would be to copy the distance() and report_distance() functions from measure.py and modify them to actually return the distance values you want.
> On Aug 22, 2018, at 7:40 AM, al.kupczyk <al.kupczyk at tlen.pl> wrote:
> I'm struggling with getting a value from runCommand in Chimera. I need to measure distance between an atom and a density map and keep it in a variable, so I'm trying to get a value from "measure distance" command in Python, but unfortunately with no results. Is there any way to somehow get it into a variable?
> Yours sincerely,
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
More information about the Chimera-users