I'm trying to use python to create nodes in the compositor. Right now I want to create an ID Mask node, but there will eventually be others.
If I create an ID Mask node via the UI and ask the python console what is C.scene.node_tree.nodes.active.type it tells me 'ID_MASK', but if I C.scene.node_tree.nodes.new('ID_MASK') I get an error
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
RuntimeError: Error: Node type ID_MASK undefined
How do I learn the proper values for the type parameter for node_tree.nodes.new(type) ?