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.2.0.tar.gz (36.7 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.2.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nodepad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 784446f7d180a894b480c5f4d550d6cf6012f344e0dd2254a0bcafb387842da2
MD5 ef3924625a556256bc16023909dc0457
BLAKE2b-256 c4f18c85487d9a67654d53cce196ebd0c9889e7e95eea154546fad786c654eec

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodepad-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: nodepad-0.2.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.12.9

File hashes

Hashes for nodepad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5981d54d742388e229e2b10c07f56bbd41de8590d7808d98e44ea7c30a4f0dd
MD5 50aa92591f4796cf561e11b058d229ca
BLAKE2b-256 f4be171e6b1ae98e854e09708a6a0d9244a0229d5c1b12dbb51e4e71e418ecb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodepad-0.2.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