Page MenuHome

copy data path is incorrect (in node values but possibly elsewhere too)
Closed, ArchivedPublic


System: Windows 10 Pro ( GTX 750 Ti )

Blender Version: 2.80 master, 2019-04-16, edc1b0167518

I tried to create 2 shaders where some of the values are interconnected.

When I copy the data path from one I get something like this:
nodes["Principled BSDF"].inputs[7].default_value

but what works in drivers is:
node_tree.nodes["Principled BSDF"].inputs[7].default_value

I have zero experience with python so I had a very hard time to find the solution in this bug report from 2014:

I'm not sure what's your opinion on it today - is this still the right thing to copy out?

What also seems wrong to me is when I copy out ANY transform data path from any object I only get these words to be pasted anywhere:



Event Timeline

Brecht Van Lommel (brecht) claimed this task.

Still the same, I'd be happy to accept a patch that improves this though.

David Kozma (kynu) added a comment.EditedApr 18 2019, 3:58 PM

I have a few questions if you don’t mind:

  1. someone asked in 2014:

Could you at least make the "Copy Data Path" from the right click menu returning the correct path?

  1. What should the patch you’d accept include? Basically a “yes to Question 1”?
  1. Isn’t the second half of my bug report still a bug?

What comes out from copying data paths of transforms of any object (just singular words)

  1. 2. I would accept a patch to make copy data path give the full path. This is not entirely trivial because it's different for different types of datablocks and node groups. There is no difference between the right-click menu and other cases.
  1. It's not clear to me what the bug is there, copy data path gives you the path relative to the datablock. Not the path to the datablock itself.