Post #1328: Should be something like this I think
📋 Metadata
- Author: Way2Close
- Date: 2018-04-19 15:07:29
- Type:
answer - Quality Score: 7/10
- Reply to: post_01327
- Replies (1): post_01329
🏷️ Tags
⚙️ Related PME Features
- Python Scripting
- Pie Menu Editor
💬 Content
Should be something like this I think
if bpy.context.space_data.tree_type == ‘ShaderNodeTree’:
open_menu(“menu_1”)
elif bpy.context.space_data.tree_type == ‘CompositorNodeTree’:
open_menu(“menu_2”)
elif bpy.context.space_data.tree_type == ‘TextureNodeTree’:
open_menu(“menu_3”)
cant find the animation one, but I never use nodes