Post #3516:
bl
📋 Metadata
- Author: roaoao
- Date: 2020-08-14 13:01:00
- Type:
answer - Quality Score: 8/10
- Reply to: post_03512
- Replies (1): post_03517
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Hotkey Configuration
💬 Content
blndrusr:
This code brings a “Invalid Syntax” message when I paste it into the ‘Command’ field.
Thanks. Here is the fixed code:
a = C.area; x = a.x + (a.width >> 1); y = a.y + a.height; C.window.cursor_warp(x, y); bpy.ops.pme.timeout(delay=0.0001, cmd="bpy.ops.screen.area_move(x=%d, y=%d, delta=-100)" % (x, y))
❤️ 3 likes