Is there a way to convert nodes (or nodes group) into Python script automatically?

If not what is the python script to:

  • create a node and set his position
  • attach a node to another and choose the input and output (and found the name of the input/output script)
  • create a group
  • choose if we want to create the node in the compositor or for a cycles shader
  • mute a node

Here is a repo that does exactly what you want. It has a ready-to-run python script that can be run from the command line in the background without opening the blender GUI. It creates a water material on a surface mesh for a convecting bubble - this is done with 2 different shaders and mixing them using a mixer shader. The script loops through the different files and renders the images as jpeg. The images are also there in the repo. Just clone the repo and run the command given in the README file in the terminal. This scripting was done with Blender v2.78.



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.