Skip to main content

All Questions

0 votes
1 answer
760 views

What type of normal and specular map nodes is correct for these textures

I am creating a plugin to import some model files from a game to blender, with all the textures and materials created automatically. I am creating a principled bsdf node from python and assign ...
3 votes
3 answers
1k views

Any way of serializing Blender cycles materials data?

I am searching of ways to serialize Blender Cycles materials to files using Python. But as of now I've found no such ways. Maybe by writing the data of the materials to files but how can I do that? ...
0 votes
0 answers
78 views

How to write a python code for changing color space of image texture attached to normal map as well as strength of normal map?

I want to write a code for changing color space of all image textures attached to normal maps as well as strength of all normal maps to 1.
1 vote
1 answer
851 views

Make material local?

I have linked a group of meshes. The geometry needs to be linked in case I want to update the imported architecture model later, and keep all my new materials setting and attribution. (I model in ...
4 votes
0 answers
749 views

Copy node tree from one material to another in cycles using python

I have two cycles materials (say source and target). I want to copy the Shader Nodetree from the source material to the target material after clearing any currently present node tree(s) in the target ...
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?
1 vote
1 answer
418 views

Assign Materials based on mesh name

our workflow for a job requires us to import alembic meshes from maya and render them in cycles. I would like run a script that looks at the scene mesh names and assigns the corresponding material. ...
1 vote
0 answers
58 views

Cycles render in background exits with error in Blender 2.91.0, on Linuxmint

I have now a recurring new problem: when I want do render a simple animation the program stops with following errors: ...
15 votes
2 answers
3k views

PyNodes, the bare basics

I know it's a very new thing (post 2.4 era anyways) but there seems to be very little documentation and examples for PyNodes in general, and the little there is doesn't seem to work in latest SVN (...
1 vote
0 answers
157 views

Adding a nodes tree from my own material instead of Principled BSDF in Python

When you click the "use nodes" button, the Principled BSDF node appears in the shader editor connected to the output node, and the properties of the Principled BSDF node appear in the ...
1 vote
0 answers
153 views

Hair on diffuse color pass is black and has no albedo information?

I have a object (face with hair) and I want to get the albedo from my diffuse color pass in Blender 2.8. I only get the image without hair. How can I get the whole image or just its albedo color? I ...
41 votes
1 answer
51k 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?
-1 votes
1 answer
483 views

How to convert a cycles material node setup to a python material generation script?

Is there a way to convert a cycles material node setup to a python script which in it's turn can generate a new material with the same node setup? Also, is it possible to somehow retain the x,y ...
0 votes
1 answer
171 views

What's the best way to build a GUI for non-blender users to control materials?

OK so I have a scenario whereby my colleagues are creating an image and overwriting a texture, they can then open a blender file and hit render to get an image showing off the design. However I need ...
2 votes
0 answers
313 views

Checking for node tree update

I would like to check if a cycles material has been updated since the last check. The easiest way to do that would probably be to store the nodetree somewhere and check against the current node tree. ...

15 30 50 per page