On 06/05/2017 13:53, Luca Pellegrini wrote:
I have created a 3D annotation with Extension -> Representations -> 3D Annotations 
-> Annotate position

How do I delete it?

Using:

remove_text(int text_handle)

There is currently no "nice" interface to this, but you can use attached python script (I would add commented lines into extensions.py as well - I will do for the next releases...).


Bernhard

def remove_annotation(rad=1.5)
    args = rotation_centre() + [rad]
    handle = text_index_near_position(*args)
    if handle > -1:
        remove_text(handle)

remove_annotation()


#     add_simple_coot_menu_menuitem(
#       submenu,
#       "Remove annotation here...",
#         lambda func: remove_annotation())



--
***************************************************

Dr. Bernhard Lohkamp
Associate Professor/Docent
Div. Molecular Structural Biology
Dept. of Medical Biochemistry and Biophysics (MBB)
Karolinska Institutet
S-17177 Stockholm
Sweden

phone: (+46) 08-52487695
fax:   (+46) 08-327626
email: bernhard.lohk...@ki.se

Reply via email to