📋 Metadata
- Author: blndrusr
- Date: 2020-08-11 11:37:49
- Type:
question - Reply to: post_01303
- Replies (1): post_03516
💬 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))