Hiding some class variables in wm.invoke_props_dialog?

Hi

I have a class like below


class OBJECT_OT_MyOperator(Operator):

    bl_idname = "object.myop"
    bl_label = "My Operator"

    operation: StringProperty()
  
      
    op: IntProperty( name = "op value", default = 3 )
    

This class invokes wm.invoke_props_dialog to call a small menu when called. It works all fine, except that I do not want operation variable in that menu. Is it possible to remove some annoatations from the operator’s self menu?

I’ll be upfront I’m guessing here, but give this a try

operation: StringProperty(options={'HIDDEN'})
1 Like

Neat! Thanks for the tip.