Page MenuHome

Call to bpy.ops.screen.area_dupli returns error
Closed, InvalidPublic

Description

System Information
Mac OSX 64 Bit - Intel

Blender Version
Broken: 2.71

Short description of error
When bpy.ops.screen.area_dupli() is called in a python script the error

wm_operator_invoke: invalid operator call 'SCREEN_OT_area_dupli'

is displayed

See this script

import bpy

class OpenAWindow(bpy.types.Operator):
    """Tooltip"""
    bl_idname = "gizmo.window"
    bl_label = "Open a Window"

    @classmethod
    def poll(cls, context):
        return context.active_object is not None

    def execute(self, context):
        bpy.ops.screen.area_dupli()
        return {'FINISHED'}

def register():
    bpy.utils.register_class(OpenAWindow)

def unregister():
    bpy.utils.unregister_class(OpenAWindow)

if __name__ == "__main__":
    register()
    bpy.ops.gizmo.window()

Event Timeline

Johnny Matthews (guitargeek) changed the task status from Unknown Status to Invalid.Jul 22 2014, 9:32 PM
Johnny Matthews (guitargeek) claimed this task.

This was user error.