Post #3516: bl

📋 Metadata

🏷️ Tags

macro hotkeys advanced solved

  • 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


🔗 View on Blender Artists