Skip to main content

Generate node group documentation from Blender files

Project description

databpy

codecov PyPI - Version Tests Workflow CD Workflow

Early stages at the moment, currently used for generating and building docs for Molecular Nodes

https://github.com/user-attachments/assets/5e5411df-a5e8-42e1-bd44-8f87cfbe9584

Installation

Available on PyPI, install with pip:

pip install nodepad

[!CAUTION]

bpy (Blender as a python module) is listed as an optional dependency, so that if you install nodepad inside of Blender you won’t install a redundant version of bpy. If you are using this outside of Blender, you will need to specifically request bpy with any of these methods:

# install wtih bpy dependency
pip install 'nodepad[bpy]'

# install both packages
pip install nodepad bpy

# install with all optional dependencies
pip install 'nodepad[all]'

Documenter class

Generates documentation for a bpy.types.GeometryNodeTree. The .as_markdown() returns a markdown formatted string for a table for inputs and outputs, as well as title and description.

import nodepad
import bpy
nodepad.utils.append_default_asset_node('Blend Hair Curves')
tree = bpy.data.node_groups['Blend Hair Curves']
tree.description = "This node group blends hair curves together"
doc = nodepad.Documenter(tree)
print(doc.as_markdown())
## Blend Hair Curves

This node group blends hair curves together


### Outputs

|Description|Socket               |
|-----------|--------------------:|
|           |`Geometry::Geometry` |

: {tbl-colwidths="[90, 10]"}

### Inputs

|Socket                 |Default|Description                                    |
|-----------------------|:-----:|-----------------------------------------------|
|`Geometry::Geometry`   |_None_ |Input Geometry (may include other than curves) |
|`Factor::Float`        |1.0    |Factor to blend overall effect                 |
|`Blend Radius::Float`  |0.05   |Radius to select neighbors for blending        |
|`Blend Neighbors::Int` |10     |Amount of neighbors used for blending          |
|`Preserve Length::Bool`|False  |Preserve each curve's length during deformation|

: {tbl-colwidths="[10, 15, 80]"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodepad-0.3.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nodepad-0.3.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file nodepad-0.3.0.tar.gz.

File metadata

  • Download URL: nodepad-0.3.0.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nodepad-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cb3a248d5ea0903f29d3290252058ed3c99ea9606871a9d220237828a7a7d618
MD5 51f44dcf237b35543e9d69fc8364cbe8
BLAKE2b-256 ce419e47a3db9e5cd5fbd25d2b65634a72cfe1a59e031b2d09d7abeae0cb0c78

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodepad-0.3.0.tar.gz:

Publisher: ci-cd.yml on BradyAJohnston/nodepad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nodepad-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nodepad-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nodepad-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82338657ea47b996acee5ad80514b235ba27994a40acf18cd497c9acfb715a5b
MD5 b2b2c40a5f44eb95b2318996818ca345
BLAKE2b-256 fe63c9545cd7e43643e5e813b42992c255a895b7c7a1003d0170cf4eace270c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodepad-0.3.0-py3-none-any.whl:

Publisher: ci-cd.yml on BradyAJohnston/nodepad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page