I right click on the cube Z location, then select "copy data path". When I paste that into the console I find the word location. Why doesn't it paste bpy.data.objects['cube'].location[2]?

  • 2
    $\begingroup$ Try Ctrl+Shift+Alt+C $\endgroup$ – brockmann Apr 27 '20 at 9:31

Place the cursor over a property and press CtrlShiftAltC to copy the full RNA data path of that property to the clipboard eg. bpy.data.objects["Cube"].location[2].

The hotkey calls bpy.ops.ui.copy_data_path_button(full_path=True) operator:

enter image description here

Somehow related: Add menu entry to generic right-click menu?

  • 1
    $\begingroup$ Carpal tunnel syndrome alert ! $\endgroup$ – Gorgious Apr 28 '20 at 20:16

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.