Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I love that you can hover your mouse over most of the blender settings and a help bubble pops up and lets you know where the python equivalent attribute lives. However if the location is long it is chopped down with '...' essentially making the-hard-to find attributes harder to find.

enter image description here

Is there a way to disable the chopping so I can see the full path? Or are there other means that people use to find out where stuff lives, aside from searching the code-base?

(searching the code base can suck if the same attribute name is used in many areas of Blender, and even if you find where it is defined, the full path may not be obvious.)

For example, I am looking for the Cycles bake settings attributes, such as "Selected to Active" which is different from the Blender Render "Selected to Active" which lives here: context.scene.render.use_bake_selected_to_active

The Cycles version is truncated to this:["Scene"]...use_selected_to_active

share|improve this question

marked as duplicate by gandalf3, Ray Mairlot, David, CoDEmanX, Keavon Aug 8 '14 at 7:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You are correct Gandalf3, I did not see that when searching. I am happy to see your comment that says this is fixed in 2.72. That is worthy of downloading a daily build in and of itself! – PolyMesh Aug 5 '14 at 5:32
Unfortunately I was about to delete that comment, because I just tested it on the checkbox you mentioned and there are still ellipses :( Still, the tooltips are a little bit nicer.. – gandalf3 Aug 5 '14 at 5:33
Nooooooooooooo! – PolyMesh Aug 5 '14 at 5:36
This conversation has left me checking chuckling. – Keavon Aug 8 '14 at 7:10
up vote 2 down vote accepted

In such cases you could have a look at the source code. Click RMB while the mouse cursor is over the property to open the context menu, select Edit Source.

  • Open a text editor and select the loaded file, you will notice that the cursor is already positioned at the property.

  • In this case the line is:

    sub.prop(cbk, "use_selected_to_active") (line:1258)

Ok, this is what you already knewd , the cbk is another variable holding the context of this property a few lines above (line:1242) you will find the definition.

cbk = scene.render.bake

Now you can assemble the parts to the full path and test it in the console window:

>>> import bpy
>>> print(["Scene"].render.bake.use_selected_to_active)

Note: Line numbers are valid for official 2.71, One could have used the D shortcut for

share|improve this answer

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