Hi,
Inside a material I have a custom node group with some parameters. I have referenced the input property to show in my addon layout with this code:
layout.prop(material.inputs[“viewport preview enable”], “default_value”, text=“Disable Lens”, toggle=True, icon_only=False, icon=“RESTRICT_RENDER_OFF”)
How can I add an tool-tip to this button?
When hovering over the node group inside the material I get the expected tooltip description:
The description is set in the Group Input of my custom node group.
How can I get the same tool-tip here in my addon UI? I would expect it to be the exact same as in the Group Input, but it shows this instead:
I could add a extra button that shows the tool-tip, but that is tedious and seems unnecessary: