Skip to content

Releases: BrendanParmer/NodeToPython

NodeToPython v3.0.1

30 Jan 14:37
Compare
Choose a tag to compare

This release contains some fixes related to packaging generated Python add-ons

See #88 for a full list

NodeToPython v3.0.0

28 Jan 05:25
50af817
Compare
Choose a tag to compare

NodeToPython v3.0 is finally here!

Blender 4.0 is now officially supported. NodeToPython has been upgraded to handle Node Panels and the new NodeTree interface, and it now supports Repeat Zones, Geometry Node Tools, the new Rotation socket, and a whole host of new nodes and settings

Joining its Geometry and Shader counterparts, NodeToPython can now generate Compositor Nodes for a scene.

This update includes a bunch of other improvements, including

  • More robust variable name creation
  • Setting a node's name attribute
  • Fixing issues with how subgroups were handled
  • A major refactor, which cleaned up the code and should speed up future development

Check out the full list of changes here

Find a problem or have a suggestion? Please submit an issue!

NodeToPython v2.2.0

03 Aug 05:10
7bd92df
Compare
Choose a tag to compare

NodeToPython v2.2 is here! This update is mostly about controlling how and where your Python code is generated.

The new Script mode creates a function to just recreate your node tree in Python code, no extra add-on fluff. It copies the function to your Blender clipboard, where you can paste it inside of the text editor to easily run or insert into your own code.

There's also Add-on mode, which behaves just like previous versions. You can now also set the location where the generated add-on is saved to, no longer forcing an addons/ directory to where your blend file was saved.

This update also includes some minor quality of life improvements and code cleanup.

Full Changelist

Features

  • New Script mode, which copies the selected node group to the Blender clipboard
  • NodeToPython now alerts users where the script or add-on is saved to when done generating
  • Users can now specify a directory to save a generated add-on to
    • No longer auto-generates an addons/ directory
  • New NTPOptions property group for global options, namely just the save directory right now
  • New NTPOptionsPanel in the NodeToPython menu for setting global options

Fixes

  • Fixed typo in generated unregister() functions

Refactor

  • More consistent usage of string functions
  • Variable names now use a dictionary with (name, usage count) pairs instead of a set

Other

  • Generated add-ons now use bl_info category "Node"
  • Removed image related print statements

Future

Next I plan on tackling Compositing Nodes, finally adding all of Blender's supported node editors. This'll likely release with support for Blender 4.0's new nodes (including the highly anticipated repeat zone).

NodeToPython v2.1.1

25 May 19:30
94ad28a
Compare
Choose a tag to compare

Installation instructions

Changelist

Fixes

  • Shader node group inputs and outputs are now properly generated
  • Image nodes no longer throw errors when no image is selected
    Refactor
  • All group inputs and outputs now share the same logic for creation and settings
  • Renamed node_tree_var to nt_var to make geo_nodes.py consistent with materials.py

NodeToPython v2.1.0

22 May 22:45
8cf57f2
Compare
Choose a tag to compare

NodeToPython v2.1 is here! Main changes are getting the add-on up to date with Blender 3.6.

Installation instructions

Changelist

Features

  • Support for new nodes from Blender versions 3.5 and 3.6
  • Simulation nodes!
  • Node Group outputs now set default values
  • Add Hide In Modifier attributes
  • Supports node socket subtypes

Fixes

  • No longer comments #Set Parents if there aren't any to be set

Refactor

  • Reorganized geo_node_settings dictionary to follow new organization from Blender 3.5
  • Node group inputs now set default values using string functions from utils.py

Future

Version 2.2 is coming soon. Planned features right now include

  • An option to copy the script to your clipboard (#40)
  • More control over the save location of the generated add-on (#46)

NodeToPython v2.0.1

06 Feb 01:33
Compare
Choose a tag to compare

Fixes

  • Color ramps now delete initial elements
  • Float, Vector, and Color Curve nodes now delete initial points

Style

  • More consistent usage of object -> string utility functions

NodeToPython v2.0.0

22 Jan 23:01
4dd03ff
Compare
Choose a tag to compare

NodeToPython v2.0 is here! This update includes all sorts of good stuff

Features

  • Shader Nodes!
    • Convert your materials to Python with just one click
  • New UI!
    • No more typing in the name of your node group, you can now just select one from a drop down menu
    • Located in the Node Editor's side panel in its own tab
  • Now includes single images in add-ons when needed
  • Sets objects, collections, textures, and materials if already present in the blend file
  • More nodes have default values set
  • Node colors now copied over
  • Nodes can now be muted

Fixes

  • Frame nodes no longer mess up node locations
  • Variable name creation no longer fails on tricky or nonexistent node names
  • Variable names are guaranteed to be unique
  • Node groups no longer recreated multiple times

Misc

  • A bunch of refactoring to account for the new UI and operators
  • Functions now have better documentation
  • Automatically zips add-ons

If find Node To Python useful in your work, let me know! I'd love to see what people are using it for. Enjoy!

-Brendan

NodeToPython v1.3.0

13 Jan 06:11
4769eef
Compare
Choose a tag to compare

NodeToPython 2.0 is coming soon! The release will include materials, a new UI, and more! In the meantime, please enjoy an update to the inputs and outputs.

Features

  • Node tree inputs and outputs now set

    • Tooltips
    • Attribute Domains
    • Default Attribute Names, and
    • Hide Value options

    where applicable

Fixes

  • There was a bug where if you had multiple Group Inputs/Output nodes, the script would add every input and output for each one. This led to slow performance times or even Blender crashing when trying to use the generated add-on, a thing that's generally good to avoid. This is no longer the case.

NodeToPython v1.2.3

10 Jan 06:11
Compare
Choose a tag to compare

Fixes

  • Issue with curve nodes not properly updating after being created

NodeToPython v1.2.2

09 Jan 01:56
Compare
Choose a tag to compare

Fixes

  • Issue where script didn't properly handle node groups with periods in the name

Misc

  • Small refactor with a new cleanup string function