How to find name of a nodes type to create with python I would like to create a ColorRamp node, but I don't know how it is called internally.
import bpy

selection = bpy.context.object
currentMaterial = selection.active_material
currentMaterial.use_nodes = True
nodes = currentMaterial.node_tree.nodes
colorRamp = nodes.new(type = 'ShaderNodeColorRamp')

The 'ShaderNodeColorRamp' does not work, the string is wrong, how do I find it's correct name out?

When creating the node via the search menu, the info area only say:
bpy.ops.node.add_search(node_item='69')
It's ShaderNodeValToRGB.
Turn on Python Tooltips under Edit &gt; Preferences &gt; Interface. Then go to the Shader Editor and hover over a node in the Add menu to see a tooltip with the name.