📋 Metadata

💬 Content

Colacuve:

I would like for the pie item to react to hide/show based on the condition…

Hi @Colacuve,
Try this code in Custom tab:

is_show = C.window_manager.measureit_run_opengl; text = "Hide" if is_show else "Show"; icon = 'PAUSE' if is_show else 'PLAY'; L.operator("measureit.runopengl", text=text, icon=icon)

❤️ 3 likes


🔗 View on Blender Artists