📋 Metadata
- Author: roaoao
- Date: 2017-09-20 01:42:08
- Type:
answer - Reply to: post_00938
💬 Content
pitiwazou:
That works when using the button in view or with the search, but not with the code.
bpy.ops.screen.area_dupli()
This is weird.
Try to add INVOKE_DEFAULT flag:
bpy.ops.screen.area_dupli('INVOKE_DEFAULT')