I have tried:
colorramp = tree.nodes.new(type="CompositorNodeColorRamp")
That doesn't work, what is the correct script to create Color Ramp Node ?
Thanks in advance.
If you turn on Python Tooltips, hovering over the Add > Converter > Color Ramp option shows
bpy.ops.node.add_node(type="CompositorNodeValToRGB", ...)
(at least on Blender 2.82).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.