3
$\begingroup$

I know how I can find out the python command by clicking a button in the Blender interface, and then look in the info window: enter image description here

For example, as can be seen, I added a cube, UV sphere, plane, camera, lamp, pressed A twice.

But how can I find out an object variable name, for example the y-rotation of an object. Because I can't find the y-rotation, when I point my mouse over it, I can only find the rotation: enter image description here

$\endgroup$
  • 2
    $\begingroup$ Rotation is a vector, for Eulers (x, y, z). rotation_euler[1] or rotation_euler.y is the y rotation component. $\endgroup$ – batFINGER Dec 23 '16 at 17:26
  • $\begingroup$ the name of the objects as set in the "outliner" are the names of the objects. type bpy.data.objects.items() to see all current objects and their names $\endgroup$ – g19fanatic Dec 23 '16 at 17:38
  • $\begingroup$ Does this addon help? github.com/adhihargo/display_matrix $\endgroup$ – stacker Dec 23 '16 at 22:26
1
$\begingroup$

This has been turned off by default in 2.80. Turn it back on in Edit > Preferences > Interface > Display > Python Tooltips

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.