Post #3349: After you add it with the panel tools you are gonna get something like this depe
📋 Metadata
- Author: noKeyframes
- Date: 2020-06-11 17:16:15
- Type:
answer - Quality Score: 8/10
- Reply to: post_03347
🏷️ Tags
popup-dialog panel configuration intermediate solved
⚙️ Related PME Features
- Panel Group Editor
- Popup Dialog Editor
- Python Scripting
- Advanced Settings
💬 Content
After you add it with the panel tools you are gonna get something like this depending on the render you are using
panel('CYCLES_MATERIAL_PT_surface', frame=True, header=True, expand=None, area='PROPERTIES')
Just change the last part that says area='PROPERTIES' to area='VIEW_3D'
like this
panel('CYCLES_MATERIAL_PT_surface', frame=True, header=True, expand=None, area='VIEW_3D')
Remember they are specific to the current render mode so if you want to have one for Eevee and one for Cycles you need to make two different menus.
In this case I would suggest to make 2 Popup menus and use the advance setting to tell the menu to only appear when you are in the correct mode.
For Eevee return C.scene.render.engine == 'BLENDER_EEVEE'
For Cycles return C.scene.render.engine == 'CYCLES'
Then just add the 2 popup menus in the principal menu since they will only appear in the specific render mode.
image694×172 21.7 KB