Post #3512: This code brings a “Invalid Syntax” message when I paste it into the ‘Command’ f

📋 Metadata

🏷️ Tags

v1-20-x macro scripting intermediate unsolved

  • Macro Editor
  • Python Scripting
  • Command Field

💬 Content

This code brings a “Invalid Syntax” message when I paste it into the ‘Command’ field. What should be changed with current versions of the addon to make it work?
Or maybe there are already other methods of splitting areas implemented?

roaoao:

Here is an example:

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))

🔗 View on Blender Artists