6
$\begingroup$

I want to get the tooltip value of a property when the mouse is over it (after pressing a shortcut), like the X location of an object or another value that can be animated in the scene.

In specific, I need the full data path of a property to automate the creation of a specific driver configuration.

I've tried to get the information from the right-click menu or the tooltip, but it doesn't seem to be accessible with python. For instance the path marked in green.

enter image description here

$\endgroup$

1 Answer 1

6
$\begingroup$

For recent Blender builds (daily builds), you can do this using shortcuts.

See: https://www.blender.org/manual/interface/buttons_and_controls.html#common-shortcuts


  • Ctrl-Shift-C - copy the data-path for this property
    (also available from the right-click menu).
    Useful when writing drivers or scripts.
  • Ctrl-Alt-Shift-C - copy the full data-path for this data-block and property.

Warning: This is typically bad practice when scripting, in most cases its best to access values based on bpy.context, accessing via string lookups in bpy.data is error prone since the user may rename objects.

$\endgroup$
1
  • $\begingroup$ I think this is a fair warning, and still being able to do this is a comfortable convenience in those scenarios (to demo, to experiment) where using the path directly is perfectly fine. $\endgroup$
    – zeffii
    Commented Nov 30, 2015 at 15:24

You must log in to answer this question.

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