Updating model property tabs

Hi. I would like to make new and hide some property tabs according to some property. The problem is that the tab will not hide if it is empty if I don’t first unselect the component and then select it again. I want that the tabs would appear and disappear without the need to unselect and selecting the component again.

I tried some rebuild etc. commands, but nothing worked. Making script that hides/shows properties is not the problem for me, but the tabs are.

Is this even possible to do?

You already got the answer, just unselect and reselect the component.

sel = getApplication().SelectionManager
currentSelection = sel.getSelection(VC_SELECTION_COMPONENT)  
sel.clear()
sel.setSelection(currentSelection)

Thank you, this works! I tried the selection manager, but apparently I used it wrong. Now I get to make even nicer components :smiley:

1 Like