Provide a API hook to override the tooltip for ui.prop(socket,"default_value",...)
Our team is developing add-on in Blender version 4.5.0. A custom N-panel is built, and ui.prop(socket, "default_value", ...) is used to draw socket properties of a material node.
When hover over one socket in the N-panel, it shows Blender's RNA description of the field default_value on the socket (hard-coded: "Input value used for unconnected socket."). ui.prop pulls that description automatically.
To provide a better user experience, I tried to set tooltips in interface item's description; however, the interface item's description can not override the one in N-panel.
It seems there is no API hook to override the description for ui.prop call.
This is a Blender limitation. If it can be improved, developers could have a flexibility to add tooltips for items drawn by ui.prop call.
0 Comments