Post #3991: Since the width and height are not working in the pme.popup this is the other op
📋 Metadata
- Author: Motiomancer
- Date: 2021-08-10 15:11:35
- Type:
answer - Quality Score: 7/10
- Reply to: post_03988
- Replies (2): post_03997, post_04534
🏷️ Tags
popup-dialog scripting advanced solved
⚙️ Related PME Features
- Popup Dialog Editor
- Python Scripting
- Macro Editor
💬 Content
Since the width and height are not working in the pme.popup this is the other option I know that might do it:
x=C.scene.render; y=C.scene.render; x1=x.resolution_x; y1=y.resolution_y; x.resolution_x=300; y.resolution_y=300; bpy.ops.render.view_show('INVOKE_DEFAULT', True); C.area.ui_type = 'OUTLINER'; C.space_data.show_restrict_column_select = True; C.space_data.show_restrict_column_viewport = True; C.space_data.show_restrict_column_select = True; x.resolution_x=x1; y.resolution_y=y1
Customize the size by changing these numbers: x.resolution_x=300 and y.resolution_y=300
It basically opens the render window with that custom resolution and changes to outline, then it reverts to the original res.