Skip to main content
14 events
when toggle format what by license comment
Nov 13, 2019 at 14:38 history edited Robert Gützkow CC BY-SA 4.0
Example of how to assign the material to the active object.
Nov 13, 2019 at 13:56 comment added WillSmithsRobot Thank you!, I was also able to find another response that has a way to post attach it as well. I will include in an additional answer to this question
Nov 13, 2019 at 13:50 comment added Robert Gützkow @WillSmithsRobot Sure I can add an example of how to assign a material to an object.
Nov 13, 2019 at 13:17 comment added WillSmithsRobot The code you wrote for my specific setup does work. Unfortunately, it does not combine easily with the "attach to object" code I had. If you see this, I would be interested in the process to appropriately assign the material as well. Thank you.
Nov 13, 2019 at 13:16 vote accept WillSmithsRobot
Nov 13, 2019 at 12:59 comment added WillSmithsRobot *** The second method does not work for this as well. The same issue occurs where the code runs fine, but no connection is made using code that does connect for other methods on the same nodes. _____________________________________________________________________________________ I am 100% positive there is a Material Output node because when I made code to create one, it was never applied to anything because one already existed. _____________________________________________________________________________________ I'm struggling to debug why MO would not be accessable with these
Nov 13, 2019 at 12:54 comment added WillSmithsRobot Attempting the first method does not cause errors, but also does not work for me. _____________________________________________________________________________________ material_output = nodes.get("Material Output") _____________________________________________________________________________________ #connect the Displacement node to the Material Output node mat.node_tree.links.new(dNode.outputs['Displacement'], material_output.inputs['Displacement'])
Nov 13, 2019 at 12:50 comment added WillSmithsRobot You're response and details are very much appreciated. Thank you for your time, Robert. I had been researching a bit and struggled to find or understand the searching of nodes.
Nov 13, 2019 at 12:48 vote accept WillSmithsRobot
Nov 13, 2019 at 12:53
Nov 12, 2019 at 23:26 history edited Robert Gützkow CC BY-SA 4.0
Missing "a" added
Nov 12, 2019 at 20:22 history edited Robert Gützkow CC BY-SA 4.0
Example for editing existing material
Nov 12, 2019 at 20:17 history edited Robert Gützkow CC BY-SA 4.0
Spelling and grammar
Nov 12, 2019 at 20:09 history edited Robert Gützkow CC BY-SA 4.0
Spelling and grammar
Nov 12, 2019 at 20:04 history answered Robert Gützkow CC BY-SA 4.0