Post #3991: Since the width and height are not working in the pme.popup this is the other op

📋 Metadata

🏷️ Tags

popup-dialog scripting advanced solved

  • 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.


🔗 View on Blender Artists