How can I activate Python tooltips in the transform section in edit mode? For other parts of the UI it's is enabled but it isn't in this part:
In 2.91 version there are not python tooltip too.
How can I activate Python tooltips in the transform section in edit mode? For other parts of the UI it's is enabled but it isn't in this part:
In 2.91 version there are not python tooltip too.
Those attributes are not completely using RNA API in its source code
TL;DL What is this DNA and RNA stuff?
RNA is also something that is partially made by code generation, using code in source/blender/makesrna. It is supposed to be a somewhat more abstract and nicer interface to the DNA data. For example, where a DNA struct might use a particular bit in a short for some flag, RNA would expose that as a bool property. So far, this nicer Data API isn't used too much in the C source code. Where it is heavily used is as the interface to and from Python. Most of the Python access to Blender data is generated automatically to use the RNA system. See Source/Architecture/RNA for more information about RNA.
The source of edit mode transform is in source > Blender > editors > space_view3d > view3d_buttons.c::code line 560
. Which doesn't seems to provide RNA API for more button information.
Another example from object mode transform, the proper RNA definition is in source > blender > makesrna > intern > rna_object.c :: line code 2740
with the following code:
/* transform */
prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_TRANSLATION);
RNA_def_property_float_sdna(prop, NULL, "loc");
RNA_def_property_editable_array_func(prop, "rna_Object_location_editable");
RNA_def_property_ui_text(prop, "Location", "Location of the object");
RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT);
RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, "rna_Object_internal_update");
Which make those button reveal python tooltip automatically .