Skip to main content

All Questions

Tagged with
2 votes
1 answer
53 views

How does the append function in python work in Blender 4?

I'm going to keep this one more focused than my last question: Appending scripts and materials from a .blend file in an addon used to look like this: ...
MisterLBlends's user avatar
0 votes
0 answers
68 views

How to create a group of property groups?

I need to create various kind of materials, so I made myself an add-on to make it easier. But I have like two dozens of kind of materials, declined with hundreds of colors. Until now, i made it up ...
Jean506's user avatar
-1 votes
1 answer
255 views

How to copy over material settings to another material assigned to object faces?

I'm working with a complicated scenario that requires me to programmatically swap multiple materials in and out of an object at a time. This object has multiple materials applied to different faces of ...
Torrin worx's user avatar
0 votes
0 answers
337 views

How to change ColorRamp Values in python

I am not that new to blender and I am trying to create a new blender addon (will spare the details) But I need to add a random value to a colorRamp (ShaderNodeValToRGB). When I use toolTips, it says I ...
Thomas Gamble's user avatar
0 votes
1 answer
416 views

How to create UI list prop for each Material in blender using python

I want to create UI list for each material slot , for example if i select "material 01" one it should only display custom_index which are assigned to material 01 , in short each material ...
draguu's user avatar
  • 319
0 votes
1 answer
1k views

Exporting as VRM, getting error codes relating to materials?

I am using this addon: https://github.com/saturday06/VRM_Addon_for_Blender and have used it successfully before, but am getting an error code when I attempt to export it. I can't make heeads nor tails ...
Halppls's user avatar
2 votes
1 answer
1k views

How can I reference the list of objects/materials in a scene using python?

I am trying to create an add-on that has a feature that allows the user to select up to 5 objects that exist in their scene. To do this I've created 5 enumerators, however, I'm struggling when it ...
leoprd's user avatar
  • 67
0 votes
0 answers
20 views

Blender 2.9 - script how to add a material shader nodes tree? [duplicate]

In blender 2.9, I got a selected object and need to add a new material in a new slot with a script addon. I need some examples for doing a material shader nodes tree in 2.9 Ex: How to adding some ...
Ricky's user avatar
  • 69
0 votes
0 answers
289 views

Controlling Node Values with python custom UI / FloatPropetie

I am currently trying to make an addon for my Minecraft Pufferfish rig with many options and settings. Now I am at the point that I have created around 60% of my UI with different properties like int ...
BlueEvil's user avatar
1 vote
1 answer
175 views

Equivalent of Material.alpha and Material.use_transparency

I am working on upgrading a 2.79 plugin to 2.8. The plugin was using the Material.use_transparency and Material.alpha fields, ...
Nemo Zhang's user avatar
1 vote
0 answers
242 views

Run function on material node tree update

I need to run a function when the user adds or removes a node from a material. My first idea was to use msgbus to subscribe to bpy.types.Nodes. This works great ...
Joshua Knauber's user avatar
0 votes
0 answers
200 views

Connecting A Node Group Between Principled and Output Shaders With Python

I am aware I could do ...
Ned's user avatar
  • 31
0 votes
0 answers
54 views

blender crashes when creating new material slot with python addon

I am making a python addon, and I have a panel in the node editor that includes the following line: ...
person132's user avatar
  • 2,303
3 votes
1 answer
223 views

How can i append a material from a blend file using python script

I wan't a script that could append a particular material only from a particular blend file so that i can just run the script and the material is there
user avatar
0 votes
1 answer
131 views

Forced material refreshing before render

I am no familiar with scripting, but I can't see another way to solve my problem with material updating in Animation, so help me please. Render engine is Blender Render and this button is a part of ...
Serge L's user avatar
  • 3,935

15 30 50 per page