0
$\begingroup$

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:

enter image description here

In 2.91 version there are not python tooltip too.

$\endgroup$
4
  • $\begingroup$ yes. but no change. $\endgroup$
    – zapdos
    Commented Aug 2, 2020 at 18:34
  • $\begingroup$ This lack was from old version(2.80+). I dont know why. There are a workaround for solving? $\endgroup$
    – zapdos
    Commented Aug 2, 2020 at 20:09
  • $\begingroup$ im using 2.83.3(setup.exe) and 2.91(.zip) downloaded today and give me the same "error". Python tooltips work for other think but not for this. $\endgroup$
    – zapdos
    Commented Aug 2, 2020 at 20:43
  • $\begingroup$ i dont want repeat me. But, in EDIT MODE? Because in OBJECTS MODE work. in EDIT MODE NO. $\endgroup$
    – zapdos
    Commented Aug 3, 2020 at 8:31

1 Answer 1

0
$\begingroup$

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 .

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .