Post #5145: Hi Guys,

📋 Metadata

  • Author: Pillemann
  • Date: 2024-07-03 08:17:11
  • Type: question
  • Quality Score: 7/10
  • Replies (1): post_05146

🏷️ Tags

pie-menu node-operations beginner unsolved

  • Pie Menu Editor
  • Python Scripting
  • Custom menu items

💬 Content

Hi Guys,

i have a question you might help. I would like to add following node to a menu:

image

This can be found in Colors → Mix Color.

This is the command that i see in console:

bpy.ops.node.add_node(use_transform=True, settings=[{“name”:“data_type”, “value”:“‘RGBA’”}], type=“ShaderNodeMix”)

But this is what i get (Float Mix):

image

How to change the command to always be in color mix mode?

Thanks,
Manu


🔗 View on Blender Artists