Page 1 of 1

cannot change node tree to the material

Posted: Sat Apr 28, 2018 12:50 pm
by Luxart
Hi,
In BlendLuxCore(2.0rc1), I cannot change(link) another node tree to the material in node editor (blender2.79b).

Re: cannot change node tree to the material

Posted: Sat Apr 28, 2018 12:51 pm
by B.Y.O.B.
Yes, each material has exactly one node tree, just like in Cycles.
Why would you want to change it?

Re: cannot change node tree to the material

Posted: Sat Apr 28, 2018 1:14 pm
by Luxart
It seems a fake user is created for each node tree, but not for material.

So If I, remove a material from an object (save & reopen file).

The material is removed and node tree is not removed as expected.

But I can't find a way to delete nodetree (or assign to another material) from node editor.

Re: cannot change node tree to the material

Posted: Sat Apr 28, 2018 1:23 pm
by B.Y.O.B.
That's true.
But I think the solution is to somehow find and delete these orphaned node trees.
I added a note here: https://github.com/LuxCoreRender/BlendL ... issues/126

Re: cannot change node tree to the material

Posted: Sat Apr 28, 2018 1:45 pm
by Luxart
Volume nodes have same issue.
Currently Image & volume nodes can be unlinked manually.
But material node tree can't be removed, As we can't even select them in node editor :( .

Thanks for looking into the problem.

Re: cannot change node tree to the material

Posted: Sat Apr 28, 2018 3:10 pm
by B.Y.O.B.
You can see them if you click the "pin" button the node editor.
Then you can also manually flag it for deletion with Shift click on X.

Re: cannot change node tree to the material

Posted: Sun Apr 29, 2018 6:05 am
by Luxart
Yes, the pinned trick works, Thanks :) .