Hidden component

Dear All,

I want that as a base setting, when adding a new component to the canvas, Hidden is set to true. This is because I linked certain (time consuming) calculations to if the object is previewed in the view-port.

I added:

Me.Hidden = true 

it to the NEW() method and to AddedToDocument(...)

This results in the problem that when opening a file, these components are automatically set to hidden,

What do I have to change?

thx  Richard

  • up

    Anders Holden Deleuran

    For a Python component you can add this line of code:

    ghenv.Component.Hidden = True

    Edit: Just realized that you had already figured this out. Will keep the reply for future reference.

    • up

      Richard Schaffranek

      Maybe I can rephrase this:

      When I add a component to the document which of the two methods are called?

      When I copy a component which of the two methods are called?

      When I open a file which of the two methods are called?

      5