Cant change objects' property - Writing to ID classes in this context is not allowed. location: :-1
Draw Def using only for UI. 
I had to add &quot;update&quot; in DD menu props that call a function in case value was changed
def common_update(self, context, origin):
    if origin == 'my_enum':
        print('button_one', getattr(self, origin))
        # bpy.data.objects[&quot;Macbook_Gold&quot;][&quot;00_iSight Camera Indicator&quot;] = getattr(self, origin)

class MyProperties(bpy.types.PropertyGroup):
my_enum : bpy.props.EnumProperty(
    update=lambda self, context: common_update(self, context, 'my_enum'), #&lt;------------
    name= &quot;&quot;,
    description= &quot;sample text&quot;,
    items= [('OP0', &quot;Ничего&quot;, &quot;&quot;),
            ('OP1', &quot;Квадрат&quot;, &quot;&quot;),
            ('OP2', &quot;Двенадцатигранник&quot;, &quot;&quot;)
    ]
)