Material Override Script (RELEASED)

Hi all,

As we all know, currently Blender doesn’t offer a Include/Exclude from material override (in a user friendly way), so I have been creating a script that somehow overcomes this “limitation”. The need for this script was originated by my own projects and I want to share it with the community.

Basically it adds a new node group just before the Material Output node that controls the looks of the material override with a basic Principle BSDF node. A material that is not using nodes is ignored by the script.

It works in two different ways, it adds the node to all the materials in the scene, to all materials of selected objects or to the selected material of the active object.

The node group looks like this:
image

Inside the node group we have this:

The biggest task was to plan the logic of it in a manner that it is easy to understand.
I have come up with this UI:

If anyone is interested I will post here the script after checking that everything works as expected. I’m open to suggestions about the UI (if is possible inside my capabilities)

Cheers.

9 Likes

jcfnav, I have an interest in your script. Thanks

1 Like

Thank you, so far the “only” missing thing to add is a way to delete the material override node group from the materials.

Hello,
Finally the addon is finished for Blender 4.0.

:warning:
The addon hasn’t been tested in any other blender version

!!! The addon is provided as is, please make a copy of your file before using it, I will not be responsible for corrupted files, missing materials/textures, or any other problem derivated from the usage of this addon.

I have used this addon in my projects and I have not encouted any problem.!!!

Now for the fun part:

The panel is located under the Tool in the 3D viewport. The buttons are self explanatory with tooltips.

Video explanation.

Addon file:
Create Override Material B4.zip (3.3 KB)

Enjoy :smiley:

5 Likes

Hi all,

I made a small update:

1- UI redisigned.
image

2- New Logic Update
All operators now work seamlessly with any node group named Custom_Override_material_Node, regardless of its suffix (e.g., Custom_Override_material_Node.001, Custom_Override_material_Node.final). This means that even if nodes are duplicated or renamed with suffixes, the operators will still recognize and handle them correctly.

This enhancement ensures robustness and flexibility, eliminating the need for manual adjustments when working with renamed or duplicated nodes.

3- Added “Sync Override Nodes”.
This feature is designed to help users manage situations where an object with a material override node (e.g., Custom_Override_material_Node.001) is duplicated or imported. Instead of having multiple versions of the override node scattered across the scene, this tool will reassign all such nodes to the original one (Custom_Override_material_Node).

This ensures consistency across your materials and keeps your node groups streamlined, making it easier to manage overrides in complex projects.

Feel free to use and modify the script to suit your needs. Please note that it is shared as-is, and I take no responsibility for any issues that may arise from its use. I have tested it under 4.0 - 4.3.

Create Override Material.zip (4.3 KB)

3 Likes

Hi, @jcfnav

I just logged in to my BA account after years of hiatus to say thank you for making this addon. Hopefully, there’ll be a continuous flow of update for each B3D release (in case things break).

Kudos to you and may you live a long and good life. :slight_smile:

Reyn

2 Likes

@reynante Thank you so much for your kind words :100:

I will do my best to keep it alive since I use it every single day on all of my projects. And if anything breaks I will try to fix it. :slight_smile:

Time for a new update. (I have tried it only in 4.3 and 4.4)

What’s New in v1.2.0

1- UI polished.
A cleaner, more organized interface for managing material overrides.

2- Logic updated.
Now all the operators will work even on linked materials, making it more flexible for linked assets.

3- Added “Update Legacy”
The new node group now uses a checkbox instead of a float slider for enabling/disabling the override.
The Update Legacy tool in the Utilities panel automatically converts old node groups to the new format.
Just Click and Go – no manual adjustments needed.

Feel free to use and modify the script to suit your needs. Please note that it is shared as-is, and I take no responsibility for any issues that may arise from its use.

Create Override Material UI.zip (6.0 KB)

1 Like

Note that view layer material overrides are now a standard blender feature for Eevee.

Thanks, I’m not familiar with view layers that much, but that doesn’t work per object only?

I just downloaded 4.5.1 LTS, and it looks like Blender devs either… took the feature back out, or moved it?

Don’t know what’s going on there…

ETA:

Oh, I thought it was already in 4…4? .5?.

Apparently target is 5.0.

https://developer.blender.org/docs/release_notes/5.0/eevee/

Guess I was using some dev version with whatever number, and thought it was relative to release.

2 Likes

Thanks for the heads up. I will take a look once is released :+1:

1 Like

Thanks a lot man! saved me a lot of time