📋 Metadata

💬 Content

For that I think you can use the scripting tab and change to the different modes and just copy that to the poll method

imageimage769×1051 107 KB

return bpy.context.space_data.shading.type == 'WIREFRAME'
return bpy.context.space_data.shading.type == 'SOLID'
return bpy.context.space_data.shading.type == 'MATERIAL'
return bpy.context.space_data.shading.type == 'RENDERED'
return bpy.context.area.ui_type == 'CompositorNodeTree'

🔗 View on Blender Artists