I feel there are some basic nodes currently missing from the node repertoire of the compositor and material editor. One such node (for me at least) is a "vector" node. This would be the 3D equivalent of the 1D "Value" node. Such node would takes 3 inputs X, Y, Z and have one vector output. Why the need for such a node? Some nodes take a vector as input (e.g. "offset" or "scale" etc), but you cannot connect a single value output of a node to the individual values of a 3 valued input. My solution was to create a "vector" group node in which I have XYZ single value inputs and use a "Combine RGBA" node to combine the XYZ values into one 3D (vector) value output. This works fine, however I want to have this custom node available to any of my blend files without having to always use append to grab this custom node any time i need it.

My question is: Is it possible to make a custom (compositor or material) node that is shared among blend files without explicitly importing that node by appending it from another file? .. perhaps via an add-on script that automatically creates these custom (group) nodes using the python node API?

  • $\begingroup$ I wonder if it is possible to create an addon which augments the relevant menu with your new group, creating the group if it is not yet in the menu... $\endgroup$ – Mutant Bob Aug 5 '15 at 18:59

You could customize your start up file. 1. Open your start up file 2. Append the node groups you use a lot, click on the F in the node groups and delete the node groups. 3. Go to your default screen 4. CTRL + U save sart up file. 5. Close your file 6. Open a new file, go to the compositor, SHIFT + A --> group --> your node groups

  • $\begingroup$ Yes, this would work only with the NEW blend files I create based on the customized start up file. The issue still remains with the already created blend files if i am editing them and want to add my customized group nodes to it. An add-on that could create (if possible) these custom groups would be desirable in this case. $\endgroup$ – DolphinDream Aug 5 '15 at 17:35

Yes it is possible, python can create nodes, position them, group them and add links. See example in this answer.

As for your example, you may want to update, the Separate/Combine XYZ nodes were added in 2.72

  • $\begingroup$ Cool. I didn't know there is a Combine/Separate XYZ node. However, note that this node is ONLY available in the material editor NOT in the compositor. It would be useful to have this node in compositor as well. $\endgroup$ – DolphinDream Aug 5 '15 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.