Linked Questions

1 vote
0 answers
51 views

Adding Image Texture Shader Node to a certain material? Blender2.8+ [duplicate]

I'm trying to add a Image Texture node, so when I bake textures it is saved to a specific file: ...
sephiroth85's user avatar
0 votes
0 answers
29 views

How to us python scripting to create, connect and change an image texture node [duplicate]

Im curious of how to automate creation of shader nodes and and end up with an image texture connected to the color-input of a Principled BSDF. This would have been easy if copy-pasting from info-...
vilhelm's user avatar
47 votes
3 answers
28k views

Control Cycles/Eevee material nodes and material properties using python?

How can I define the different properties of an Cycles/Eevee material? Such things as glossy, glass, diffuse, RGB-color, emissive via python scripting?
binaryBigInt's user avatar
  • 1,047
41 votes
1 answer
50k views

How to assign a new material to an object in the scene from Python?

How can I assign a new material to an object in the scene via Python?
binaryBigInt's user avatar
  • 1,047
2 votes
1 answer
3k views

Using Python to add an HDRI to world node

How do I add in a blender python script a hdri to the world node. ...
Mattie Voohies's user avatar
0 votes
1 answer
3k views

Updating the texture image node using python

Updating texture image node issue using python. I have several different texture input files that I want to render out using the same node group setup and blender file. Python doesn't seem to be ...
Rick T's user avatar
  • 4,523
1 vote
1 answer
1k views

How can I apply an image texture to a certain part of a mesh?

I have a mesh, with 16 faces, that I ultimately show in Blender Game Engine, and want to apply separate textures to the faces via a script. The reason behind this is I'm trying to show a detailed ...
DrZaphod's user avatar
  • 113
1 vote
1 answer
751 views

How to load image sequence for texture node via code

I would like to assign an image sequence to the ShaderNodeTexImage ...
thigi's user avatar
  • 111
1 vote
1 answer
898 views

Blender scripting: How to change texture color

I'm trying to create a picture in Blender using only Python/scripting (no animation). I have a model loaded in and I can change it's base color using active_material.diffuse_color but now I want to ...
Sydney's user avatar
  • 21
0 votes
0 answers
153 views

Python select packed image shader editor?

In python, how do I input an image file, add it to an image texture node, and set its properties so that it will be packed into the .blend file? That is, how do I automate the actions in this ...
Emīls Geršinskis-Ješinskis's user avatar