How to call LayerProperties visible(real)

What is proper way to call first variant (method with parameter) of LayerProperties.visible in Python, since it is attribute there, mapped to parameter equal to True? Same goes for other similar LayerProperties methods like xfill, valid, etc.

Comments

  • Ha, you caught me. That is undocumented :(

    The method version is called "visible_" with a trailing underscore. So you can use:

    local_visibility = layer_properties.visible_(False)
    

    Same should work for the other attribute/method overloads.

    Matthias

  • Hi, Matthias!

    Thank you for explanations! It'll be really helpful to update documentation!

Sign In or Register to comment.