Operator with multiple properties.

Does anyone know how to get this button to work:

row.operator(“mesh.quads_convert_to_tris”, text = “TRI”)

But with both:
.quad_method=‘BEAUTY’
&
.ngon_method=‘BEAUTY’

Thanks in advance.

The layout.operator functions returns the operator instance, so just assign to it like below.


op = row.operator("mesh.quads_convert_to_tris", text = "TRI")
op.quad_method='BEAUTY'
op.ngon_method='BEAUTY'

Thanks so much :slight_smile: