I have an addon which creates a panel with properties on Blender startup:
class OBJECT_PT_runcamera(bpy.types.Panel): bl_label = "Some Name" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "render" def draw_header(self, context): layout = self.layout layout.label(text="", icon="MESH_GRID") def draw(self, context): layout = self.layout row1 = layout.row() row1.prop(context.scene, "myCustomPropertysName")
Now, after the panel has been created, I want to change the row's
enabled value when user clicks some specific button -- ie, some properties (shown in rows) in the panel will be disabled/enabled by some function called from another property/button.
I've tried different ways to write the command but nothing worked.