I hate the new "mix" node, so I asked GPT to fix that.
this addon restores the good-ol Mix RGB node.
Download here:
https://blenderartists.org/t/restored...
Full Code in case this thread goes missing:
bl_info = {
"name": "Restore MIX_RGB",
"blender": (3, 20, 0),
"category": "Object",
}
import bpy
from bpy.types import Operator
class MixRGBOperator(Operator):
bl_idname = "object.mix_rgb_operator"
bl_label = "Add Mix RGB Node"
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
tree = context.space_data.edit_tree
nodes = tree.nodes
new_node = nodes.new("ShaderNodeMixRGB")
new_node.location = (0, 0)
return {'FINISHED'}
class NODE_PT_mix_rgb(bpy.types.Panel):
bl_space_type = 'NODE_EDITOR'
bl_region_type = 'UI'
bl_label = "Add Mix RGB Node"
def draw(self, context):
layout = self.layout
layout.operator("object.mix_rgb_operator")
def register():
bpy.utils.register_class(MixRGBOperator)
bpy.utils.register_class(NODE_PT_mix_rgb)
def unregister():
bpy.utils.unregister_class(MixRGBOperator)
bpy.utils.unregister_class(NODE_PT_mix_rgb)
if _name_ == "__main__":
register()