I have an operator that has properties like below

class WM_OT_SceneOpen(bpy.types.Operator):
    bl_idname = "wm.sceneopen"
    bl_label = "Scene Open"


    def execute(self,context):
        #some stuff

Now I call this in a panel like this and works


However I also want to be able to pass/modify the mybool property as well during the panel execution but I cant find a way to do that.

This must be possible. But how?


  • 1
    $\begingroup$ This has been asked before, searching for dupes gets harder.. anyway in layout code op = layout.operator("foo.bar") can then use op.x = 2 followed by op.name = "foo" for each property. $\endgroup$
    – batFINGER
    Feb 19 '19 at 4:32
  • 1
    $\begingroup$ Cheers Possible duplicate of Access operator's property with python $\endgroup$
    – batFINGER
    Feb 19 '19 at 4:40

Browse other questions tagged or ask your own question.