Hi all,
I have written a little tool for developpers. It converts a compositor nodetree in a python script, that can rebuild this nodetree. I use it for myself as a helper for the creation of presets.
Download: www.luna-project.de/nodes2py.zip
Two things I have learned by finishing this: There have been API changes,
which broke some of the functionality of the compostings presets addon.
- If you write someting like:
Node_G = bpy.data.node_groups.new(“GENERATED”, type=‘CompositorNodeTree’)
you have to pass a node.bl_idname as type not node.type. This is a little bit confusing. - To add a group to the compositor in a way that it can be seen and edited you have
to do it via node_tree:
node = Tree.nodes.new(type=‘CompositorNodeGroup’)
node.node_tree = Node_G
I hope this is useful for somebody
Cheers Cortot