Post #3868: I know a way but is kinda convoluted, put this in the command tab:
📋 Metadata
- Author: Motiomancer
- Date: 2021-05-20 21:37:57
- Type:
answer - Quality Score: 8/10
- Reply to: post_03867
- Replies (3): post_03869, post_03870, post_05018
🏷️ Tags
popup-dialog hotkeys advanced solved
⚙️ Related PME Features
- Popup Dialog Editor
- Macro Editor
- Python Scripting
💬 Content
I know a way but is kinda convoluted, put this in the command tab:
bpy.ops.pme.popup_area('INVOKE_DEFAULT', area='UV', auto_close=False); import ctypes; u = ctypes.windll.user32; handle = u.GetActiveWindow(); u.MoveWindow(handle, 2000, 100 ,1800, 1400, True); u.ShowWindow(handle, 3)
What it does is:
-
Creates a window with pme:
bpy.ops.pme.popup_area('INVOKE_DEFAULT', area='UV', auto_close=False) -
Then moves that window:
u.MoveWindow(handle, 2000, 100 ,1800, 1400, True)
MoveWindow(handle, x, y, height, width, repaint(bool))
This is important, x and y are the position the window is going to be moved to, in this case I changed x to 2000 pixels so it moves to the right to my second monitor (could also use -2000 and move it to the left), you would have to adjust this to your setup
- Then maximizes that window:
u.ShowWindow(handle, 3)
❤️ 4 likes