Post #939: ![](https://blenderartists.org/user_avatar/blenderartists.org/pitiwazou/48/45188

📋 Metadata

  • Author: roaoao
  • Date: 2017-09-20 01:42:08
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_00938

🏷️ Tags

hotkeys intermediate solved

  • Macro Editor
  • Python Scripting

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

🔗 View on Blender Artists