So I create an operator, I also declare a StringProperty in it:

class MyOps(bpy.types.Operator):
    bl_idname = "test.myops"
    bl_label = "My Ops"
    my_prop: bpy.props.StringProperty()

    def execute(self, context):
        return {'FINISHED'}

Let's say I would like to change the ownership of the operator, via another operator:

class MyOpsChange(bpy.types.Operator):
    bl_idname = "test.myopschange"
    bl_label = "My Ops Change"
    def execute(self, context):

        #Is it possible to change the value of MyOps.my_prop, of the operator from here?
        return {'FINISHED'}
  • $\begingroup$ Doesn't make sense logically. You can just call the operator and pass the value right? $\endgroup$
    – brockmann
    Jun 17 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.