[Python] How to view the value of a Metashape Application attribute that displays in angle...

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    How do I access the value of an object attribute that displays in angle brackets like: <attribute 'version' of 'Metashape.Metashape.Application' objects>?

    Specifically, I am using the Metashape Python module and run the following lines within an interactive Python session:

    import Metashape
    a = Metashape.Application
    a.version


    and this is when I get

    <attribute 'version' of 'Metashape.Metashape.Application' objects>


    I've tried print(a.version) and get the same output.

    According to the module reference doc, this attribute should be a string, so I'm confused why it can't just be displayed as a string.

    Continue reading...

Compartilhe esta Página