Skip to content

Nodetree Source

by Nikita Akimov·Workflow

Illustrative cover generated by AnyPlugins — no product screenshot available.

Why we like it

NodeTree Source earns its place in the Blender library as a practical bridge between material creation and code. It captures a node tree as Python and packages it for reuse or distribution, which makes it handy for developers shipping materials inside their own add-ons. A demo video is available, and the add-on ships under the GPL license.

What is Nodetree Source?

NodeTree Source is a Blender add-on that turns material node trees into Python source code. Clicking the Material to Text button generates the current material's source code and displays it in the Text Editor window, where you can copy it or save it to a file. Running that code with the Run Script button recreates the same material in any project, and the code can be included directly in your own add-on or script to supply materials to its users.

The add-on also keeps its own local library. The Material to Library button saves a material's source code for immediate reuse, and the Distribute Library as Add-on button compiles the entire library into a separate add-on archive that other users can download and install. The library is stored in the add-on directory, so back it up before removing or reinstalling the add-on.

Aimed at Blender script and add-on developers as well as material and shader creators, NodeTree Source lives in the 3D Viewport N-panel. Note that generated code is not guaranteed to work correctly across different Blender versions.

Who is Nodetree Source best for?

Nodetree Source is best for blender script and add-on developers, and material and shader creators who want to capture material node trees as Python code and package them for reuse or distribution.

How much does Nodetree Source cost?

Nodetree Source is completely free to download and use.

Key features

  • Material to Text button that generates the current material's node tree source code and displays it in the Text Editor window
  • Run Script execution that recreates the same material in another project from the generated code
  • Generated code can be included directly in your own Blender add-on or script to supply materials to users
  • Material to Library button for saving material source code into a local library for immediate reuse
  • Distribute Library as Add-on button that compiles the entire library into a separate, installable add-on archive
  • Located in the 3D Viewport N-panel under the NodeTree Source tab
  • Documentation included

Tags

#Blender#material nodes#Python#shader#node tree#add-on development#material library

Frequently asked questions

Which Blender versions does NodeTree Source support?

NodeTree Source lists support for Blender 2.93, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 4.0, and 4.1, covering a long stretch of releases across the 2.9, 3.x, and 4.x series. One caveat is worth noting: the add-on cannot guarantee that generated code will work correctly between different Blender versions, since the developers make changes to each release. Material code created in one version may not run correctly in another, so keep your working version in mind when sharing or reusing generated source across projects.

Where do I find NodeTree Source in Blender?

NodeTree Source lives in the 3D Viewport window, inside the N-panel under the 'NodeTree Source' tab. From there you reach its main actions. The Material to Text button generates the current material's node tree source code and shows it in the Text Editor window, where you can copy it or save it to a file. The Run Script button executes that code to recreate the same material in the project. The Material to Library button saves material source into the local library, and Distribute Library as Add-on packages the library for sharing.

Is NodeTree Source free to use?

NodeTree Source is listed here as free, so you can add it to your Blender setup without a purchase on this catalog. Licensing terms can change over time, though, so it's worth checking the developer's page for the current details before you rely on it. The add-on is released under the GPL license. For questions about usage rights or distribution of the code it generates, the developer's page is the best place to confirm the latest terms directly from the creator.

How is the NodeTree Source materials library stored and backed up?

NodeTree Source stores its local materials library inside the add-on directory. If you need to temporarily remove or reinstall the add-on, back up the library to a separate location on disk first, otherwise you risk losing your saved material sources. After reinstalling, you can restore the library simply by copying it back into the add-on's 'nodetree_source_library' directory. Materials saved to the library are available for use immediately, and if you want to share them, the library can be compiled into a standalone add-on archive that others download and install.

Alternatives to Nodetree Source

Also in Workflow for Blender.

Similar plugins