Linked Questions

4 votes
2 answers

How to change base color of a Principled BSDF Material? [duplicate]

I'm trying to use the blender python API to change the base color of multiple materials from an object. I'm pretty new to the bpy and the documentation is likely poor. This is my selected object, and ...
yieniggu's user avatar
  • 185
1 vote
4 answers

How to access shader node via Python script? [duplicate]

Above is the material I've created. I exported my model to .obj from Blender. From a Python script (I have Blender compiled as a Python Module), I import my .obj file. I then attempt to set the ...
pookie's user avatar
  • 133
1 vote
1 answer

Change nodes position through scripts [duplicate]

I'm Creating some nodes through python script. The problem is that all the nodes are overlapping each over. I just wanna programatically re position those nodes. How to do this? ...
youhsia's user avatar
  • 35
4 votes
0 answers

Blender scripting- How do I link Nodes? [duplicate]

Im trying to figure out how to link two nodes in Python. So far Ive found some pretty limited documentation here, but it gives you no idea what arguments the operator takes or how to use it. So for ...
greyoxide's user avatar
  • 167
1 vote
1 answer

Change custom Node input through Python console [duplicate]

I have a custom node simulating a laser: The node itself is pretty complex with rotations and whatnot, but it's attached to a Lamp object. In short what it does is illuminate a pixel if some ...
janonespe's user avatar
0 votes
0 answers

How to use blender change material color with python [duplicate]

I have a model about blender,there is a object (name's car_AudiA8) with multi-material,I want to copy a new object from the object ("car_AudiA8"),then change new object's color and old object's color ...
user824624's user avatar
2 votes
1 answer

A Way to Create Blender Materials in Text or Script? (Included: Script to Retexture SFM Models in Blender!) [duplicate]

I have a model from Source Filmmaker that has a bunch of different textures. It's all imported and ready to be textured using Blender nodes, but since there are so many objects (over 40) in this ...
pridestalker's user avatar
0 votes
0 answers

How to add an emission node with a specific color to a material and add that material to an object? [duplicate]

So far I have seen this and this both which did not work for me. Currently I have: ...
Hakaishin's user avatar
  • 577
0 votes
1 answer

How can I apply a basic material to an object using python in cycles render? [duplicate]

I would like to be able to apply and edit a material to objects I have create using python script. I am using the cycles render engine but can't find a way to get this to work. I've tried a bunch of ...
Alex C's user avatar
  • 9
3 votes
0 answers

Example of creating and setting a Cycles material node with the Python API [duplicate]

I'm trying to set the properties of a Cycles material, which is linked to a Plane object, using the API. So far this is what I'...
Ajay T's user avatar
  • 115
1 vote
0 answers

How can I change the Viewport Display Color of a material with Python? [duplicate]

I am trying to create a script that resets the viewport display color of all selected objects that have a material. I'm talking about this value: Any help would be appreciated!
fmotion1's user avatar
  • 1,431
0 votes
0 answers

simple python script to add nodes [duplicate]

I almost have no clue regarding python and scripting, and I was wondering if there is a simple script to create two nodes in the shader editor. Something like this: UV map → Image texture That's it....
four two's user avatar
  • 980
1 vote
0 answers

Shaders Nodes - Attaching and detaching nodes with python [duplicate]

I would like to import an image as a plane, then add a MixShader and a Transparent BSDF, detach the Material Output Surface link, attach the BSDF to the MixShader, to the Material Output, then add the ...
Michael Teiniker's user avatar
0 votes
0 answers

Add a created group in a node tree exploiting python [duplicate]

I have created a node tree in a different blend file, and I just need to add it as a group exploiting a script. In the following figure there is the "manual" procedure. I have tried to add ...
Carmine Buonagura's user avatar
0 votes
0 answers

How to apply a texture via Python? [duplicate]

I'm not at all sure what the title of this question should be. In the following image, you can see how I've used the Shading editor to create a texture. What I want to do is to do this via python. ...
juggler's user avatar
  • 147

15 30 50 per page
2 3 4 5