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]
?
$\begingroup$
$\endgroup$
1
-
2$\begingroup$ Try Ctrl+Shift+Alt+C $\endgroup$– brockmannCommented Apr 27, 2020 at 9:31
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
1
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:
Somehow related: Add menu entry to generic right-click menu?
-
1