Sometimes the attributes of an operator can change quite dratically the output for the end user.

is there a way to make the description of this operator adaptive to the attribute ?

exemple in the script below:

class SCATTER_OT_print(bpy.types.Operator):
    bl_idname      = "scatter.print"
    bl_label       = ""

    pref : bpy.props.StringProperty()
    bl_description = "print: " + pref #Adaptive desctiption ? 

    def execute(self, context):
  • 1
    $\begingroup$ Can you give an example of how the operator will change it's functionality in such a way that the original description will no longer be informative? $\endgroup$ – Ray Mairlot Oct 31 '19 at 18:24
  • $\begingroup$ Albeit the dupe listed is attempting to change label rather than description, the same answer applies. Somewhat related blender.stackexchange.com/questions/56727/… $\endgroup$ – batFINGER Nov 4 '19 at 9:59

Browse other questions tagged or ask your own question.