Post #3512: This code brings a “Invalid Syntax” message when I paste it into the ‘Command’ f
📋 Metadata
- Author: blndrusr
- Date: 2020-08-11 11:37:49
- Type:
question - Quality Score: 6/10
- Reply to: post_01303
- Replies (1): post_03516
🏷️ Tags
v1-20-x macro scripting intermediate unsolved
⚙️ Related PME Features
- 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))