Skip to content

Exporting Collections of Nodes? #120

@zachcp

Description

@zachcp

Hi @BrendanParmer ,

Thanks for this wonderful tool. I've recently been playing with @BradyAJohnston 's fantastic MolecularNodes, which is implemented as a set of domain-specific GeometryNodes for making beautiful scientific illustrations. I have been interested in building some visualizations on top of MN but have found the devcycle to be a bit tricky and have therefore been exploring using NodeToPython to export his Nodes as python classes with the idea that I would be able to build up higher-level nodes in the GUI but then save and manipulate them via the python API.

I've got a working example of looping through all of the Nodes in his package and exporting them individually as files. The repo is here: molnodes-utils. Theres a few questions I would love to ask your opinion on:

  1. Would it be straightforward to export collections of Nodes instead of one-at-a time? I am currently hacking my way around your export system.
  2. Would it be possible to extend the export system to add imports for custom nodes? For example the MN_units class creates and uses an MN_world_scale Node which is defined in a seperate class/file. It would be nice to add that to the __init__.py that is exported
  3. I wrote a conversion script that loops across Nodes files and outputs each Class as a python file. Its a bit hacky and I would love suggestions/feedback you might have.
  4. I am interested in your opinion on the best workflow for how to develop on top of your code - e.g. do you have a recommended cycle of building and deploying? MN build and deposits a .blend file but it would be wonderful to have a full CI/CD system for iterating new features.

In short, you have developed a wonderful tool that I would like to use and would appreciate you input on and of the above problems. Note that to get nodetopython to work I did fork it so I could use pip to install/use your v3.2 branch as a library (git coords here)

Thanks again,
zach cp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions