Collection Visibility

there is no ‘selected_ids’ outside of the outliner context. OP needs to either poll for context.area.type == 'OUTLINER' or add the ctypes workaround.

1 Like