Is there a way to access a bpy.types.Operator value
Window Manager keeps track of registered operators

Lets say we add a property to the simple operator template, and make it register - undo

class SimpleOperator(bpy.types.Operator):
    """Tooltip"""
    bl_idname = "object.simple_operator"
    bl_label = "Simple Object Operator"
    bl_options = {'REGISTER', 'UNDO'}
    xxx : bpy.props.StringProperty(default="foo")


Invoke it from the UI



Then in python console use WindowManager.operator_properties_last

&gt;&gt;&gt; op = C.window_manager.operator_properties_last("object.simple_operator")
&gt;&gt;&gt; op.xxx
'ggggg'


There is a also a collection of operators used in WindowManager.operators  If the operator has register undo we can find the value used, for example having invoked bpy.ops.object.duplicate_move() in the UI

&gt;&gt;&gt; C.window_manager.operators['
                                MESH_OT_snap_faces']
                                OBJECT_OT_duplicate_move']
                                OBJECT_OT_editmode_toggle']
                                TEXT_OT_run_script']
                                VIEW3D_OT_select']
                                VIEW3D_OT_select']
&gt;&gt;&gt; op = C.window_manager.operators['OBJECT_OT_duplicate_move']
&gt;&gt;&gt; # how much did it move
&gt;&gt;&gt; op.macros['
               OBJECT_OT_duplicate']
               TRANSFORM_OT_translate']
&gt;&gt;&gt; op.macros['TRANSFORM_OT_translate'].properties['value'].to_list()
[0.7582358121871948, 1.8491952419281006, 0.10750504583120346]


The collection is keyed using the idname

&gt;&gt;&gt; bpy.ops.object.duplicate_move.idname()
'OBJECT_OT_duplicate_move'


Note that the value of properties here will be the as used only if the operator has 'UNDO' option, otherwise it will return the default value of the property. 

Note the template class name is SimpleOperator but really should be OBJECT_OT_simple_operator to match its id name "object.simple_operator" as per the naming convention

From https://blender.stackexchange.com/a/159444/15543