Label gurus,

I'm trying to label CGO objects with custom labels. I found the previous posts that explain how to create CGO text and then the "painful" way of reorienting the labels when the molecule is moved using cmd.rotate and cmd.translate. I'm curious if an easier way has been developed since the posts in 2002. I see that the "distance" command draws in CGO cylinders (dashes) between two atom selections and then labels them with the distance, meaning that it is possible in PyMOL to have labels tied to a CGO object. I've tried to generate a selection (since cmd.label requires a selection as the first param) from the CGO object but I don't think it's possible and cmd.label won't take my CGO object as the first param.

I've succeeded in getting something close to what I want by labeling the closest atom to my CGO object with my custom label, and then translating the label using the mouse. But this procedure is not possible to do in a script or plugin. Is there a better way to label CGOs?

Thanks for any ideas.

-Ron

Ron Jacak
Graduate Student
University of North Carolina - Chapel Hill

Reply via email to