0
$\begingroup$

I'm making an operator which has multiple properties in the UNDO window:

enter image description here

Depending on the result which happened inside the execute() function some of these properties would be relevant and some would not.

*The question:

How can I dynamically set some of these properties being shown while others being hidden *depending on the result of execute() ?

$\endgroup$

1 Answer 1

2
$\begingroup$

Use a Custom Interface.

def draw(self, context):
    layout = self.layout
    
    if self.condition == True:
        row = layout .row()
        row.prop(self, "property1")
$\endgroup$
1
  • $\begingroup$ This is exactly what I needed. HUGE thanks ! $\endgroup$
    – Yaroslav
    Commented Apr 10 at 13:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .