Post #1972: hello i tray to replicate the 2.79 layer box functionality in 2.8

📋 Metadata

🏷️ Tags

popup-dialog ui-customization beginner unsolved

  • Panel Group Editor
  • Property Editor
  • Custom Icons

💬 Content

hello i tray to replicate the 2.79 layer box functionality in 2.8
i al ready get this

bpy.ops.object.hide_collection(collection_index=1)

in a panel button which toggle layer visibility. But also add or remove from visibility when holding shift (suppose is because that command have it built in somehow)

de remaining functionality i´m looking for is :
1 icon toggle like check box if the layer is visible or not
2 smaller icon if it is possible
i read the forum looking for this and find dis shod be similar to this sample you give

L.prop(props(), "Property", slot, icon='COLOR_GREEN' if props("Property") else 'COLOR_RED')

but i don´t have programing skills so not able to fain and check the variables to check if the corresponding collection is visible or not


🔗 View on Blender Artists