NodeToPython v2.2.0
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
- No longer auto-generates an
- New
NTPOptionsproperty group for global options, namely just the save directory right now - New
NTPOptionsPanelin 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_infocategory "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).