Linked Questions

4
votes
0answers
3k views

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 ...
0
votes
0answers
806 views

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 ...
1
vote
1answer
243 views

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? ...
0
votes
1answer
429 views

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 ...
0
votes
1answer
416 views

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 ...
0
votes
0answers
378 views

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: ...
3
votes
0answers
220 views

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'...
0
votes
0answers
51 views

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....
9
votes
1answer
12k views

Add material and apply Diffuse color via Python

This may be another simple question but I can't seem to find a straight answer. I am procedurally generating figures and as part of the last step I want to color the figure red. If I manually add a ...
5
votes
2answers
2k views

How to set default shader to principled brdf

I saw in this youtube demonstration, that this is possible. I just can't imagine where I can change the default shader. I want the diffuse white shader to be a diffuse white principled brdf, when I ...
4
votes
2answers
2k views

Assign one material to multiple objects via Python

I am using ePMV Blender addon to import molecular structures into Blender. It generates multiple objects (protein sub-structures called helices, coils and strands) and it assigns a separate material ...
5
votes
1answer
3k views

Create an image node via code

I tried to create an image node in blender with cycles renderer enabled. My first attempt looks like this: ...
4
votes
1answer
3k views

How add primitives or other objects to scene using python

I found many old information. Where is simple example to add all primitives (completly working example with actual blender) I need put cylinder, and move it into specyfic location, seting scale and ...
2
votes
1answer
2k views

Blender cycles, apply textures through a python script

I am trying to apply textures through a python script. I would like to use blender cycles renderer. I thought following these advices would be sufficient, but sadly Blender does not show the ...
5
votes
1answer
1k views

Extract sequence of frames from imported MP4 - scripted?

I would like to extract a sequence of images files from an imported mp4, ideally using a script. I'll then analyze the images with python to start extracting cues and other information, so they don't ...

15 30 50 per page