Skip to main content

All Questions

0 votes
0 answers
23 views

getting two render image pair using python API

I've been working on this for several days, but haven't found any solutions. Please help me out I want two images per render scene. ordinary color rendered image only page masked image(Using Material ...
cosmoswt's user avatar
2 votes
2 answers
85 views

How can I remove unused shader nodes in all my materials?

400+ materials in the shader editor currently have approx. 3 duplicates from running another script multiple times. The current script is unsuccessful. ...
The Vision Tunnel's user avatar
2 votes
0 answers
41 views

How can I get the final evaluated material color of each face?

I want to be able to get the final evaluated color for each face regardless of what shader node setup I have. I just want to get the final color result flowing into the Base Color socket of the ...
Megan Love's user avatar
1 vote
1 answer
46 views

How to Set Object Viewport Colors Based on PBR Material Properties?

I'm trying to create a script in Blender that sets the viewport colors of objects based on the properties of their physically-based rendering (PBR) materials. However, I'm encountering difficulties in ...
Larry's user avatar
  • 11
0 votes
1 answer
84 views

Assign a custom material property to models

I need an explanation how to access and iterate over Materials in Objects. I want to add few Custom Properties in a set of files (I want to import each file, add Properties to every material in that ...
tomangelo's user avatar
2 votes
1 answer
88 views

Change Material Properties of Multiple Materials

I'm importing hundreds of different textures into Blender and I want to change the blend mode on all of them from Alpha Blend to Opaque. I understand I will need to run a python command, however the ...
David's user avatar
  • 23
1 vote
1 answer
41 views

How can I set the color/material of an object added/appended from another file?

It is not possible to set the color of the object added from the file. What am I doing wrong? ...
Dima S's user avatar
  • 13
3 votes
1 answer
95 views

Material not updating when param in Attribute node is changed via Python

I have a Material node, it contains the default BSDF Shader whose color is fed via an Attribute Node. The Type is Object, and Attribute Node's Name is custom_color. ...
YupDiDo's user avatar
  • 55
1 vote
1 answer
136 views

Blender API remove polygons from mesh

I try remove polygon by material_index. Re-assign polygons errors ...
minus_dva's user avatar
2 votes
2 answers
689 views

How to apply an already existing material to an object in Python?

I've searched a bit and gotten close to the answer but I just can't figure it out. I just want to apply it to a context object.
Hyde 's user avatar
  • 41
0 votes
0 answers
50 views

Need help fixing a script for generating texture assignment file in Blender

Hello Blender community, I am seeking help with a script I'm working on for generating a texture assignment file in Blender for each .glb file contained in the specified folder. The script is intended ...
Loopme's user avatar
  • 1
1 vote
1 answer
196 views

How to remove unused material slots in all objects if the objects are not selected? [duplicate]

Please tell me. How to remove unused materials in all objects if the objects are not selected? I tried this code but didn't get what I wanted. This code does not remove unused materials in unselected ...
Ruslan's user avatar
  • 11
0 votes
1 answer
1k views

AttributeError: ‘NoneType’ object has no attribute ‘space_data’

I am using blender 3.2, am trying to execute the below steps using python script Import Rigged avatar (.glb) into Blender Select the mesh of upper human body Go to shade editor, delete existing ...
user1577494's user avatar
2 votes
2 answers
336 views

Modifying single-object Python script to execute on all selected objects

I have a Python script that I am currently using to (excuse the confusing description) rename a given object's material's image-datablock-names to their actual filenames. It works correctly, for a ...
VictorC's user avatar
  • 23
0 votes
0 answers
363 views

Batch renaming materials to texture name "XPS Shader"

If my node is "XPS_Shader" instead of "BSDF_PRINCIPLED",how to change these code? ...
mini core's user avatar

15 30 50 per page
1
2 3 4 5
10