nodebpy 0.2.1__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {nodebpy-0.2.1 → nodebpy-0.3.1}/PKG-INFO +14 -4
  2. {nodebpy-0.2.1 → nodebpy-0.3.1}/README.md +13 -3
  3. {nodebpy-0.2.1 → nodebpy-0.3.1}/pyproject.toml +1 -1
  4. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/builder.py +195 -407
  5. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/__init__.py +6 -0
  6. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/attribute.py +98 -4
  7. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/color.py +6 -2
  8. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/converter.py +357 -54
  9. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/experimental.py +9 -3
  10. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/geometry.py +390 -94
  11. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/grid.py +90 -30
  12. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/group.py +3 -1
  13. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/input.py +239 -78
  14. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/interface.py +21 -7
  15. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/manual.py +46 -17
  16. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/output.py +8 -1
  17. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/texture.py +30 -10
  18. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/vector.py +41 -4
  19. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/nodes/zone.py +199 -204
  20. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/types.py +1 -1
  21. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/__init__.py +0 -0
  22. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/arrange.py +0 -0
  23. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/screenshot.py +0 -0
  24. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/screenshot_subprocess.py +0 -0
  25. {nodebpy-0.2.1 → nodebpy-0.3.1}/src/nodebpy/sockets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nodebpy
3
- Version: 0.2.1
3
+ Version: 0.3.1
4
4
  Summary: Build nodes in Blender with code
5
5
  Author: Brady Johnston
6
6
  Author-email: Brady Johnston <brady.johnston@me.com>
@@ -94,8 +94,8 @@ tree
94
94
  graph LR
95
95
  N0("NodeGroupInput"):::default-node
96
96
  N1("RandomValue<br/><small>(-1,-1,-1) seed:2</small>"):::converter-node
97
- N2("RandomValue<br/><small>(-1,-1,-1) seed:1</small>"):::converter-node
98
- N3("AlignRotationToVector<br/><small>(0,0,1)</small>"):::converter-node
97
+ N2("RandomValue<br/><small>(-1,-1,-1)</small>"):::converter-node
98
+ N3("AlignRotationToVector"):::converter-node
99
99
  N4("AxisAngleToRotation<br/><small>(0,0,1)</small>"):::converter-node
100
100
  N5("InputPosition"):::input-node
101
101
  N6("Points"):::geometry-node
@@ -109,7 +109,7 @@ graph LR
109
109
  N14("RealizeInstances"):::geometry-node
110
110
  N15("InstanceOnPoints"):::geometry-node
111
111
  N16("NodeGroupOutput"):::default-node
112
- N1 -->|"Value>>Rotation"| N3
112
+ N1 -->|"Value>>Vector"| N3
113
113
  N4 -->|"Rotation>>Rotate By"| N8
114
114
  N3 -->|"Rotation>>Rotation"| N8
115
115
  N2 -->|"Value>>Position"| N6
@@ -158,3 +158,13 @@ actually build.
158
158
  - `TransformGeometry.matrix(CombineTrasnsform(translation=(0, 0, 1))`
159
159
  - `TransformGeoemtry.components(translation=(0, 0, 1))`
160
160
  - `TransformGeometry(translation=(0, 0, 1))`
161
+
162
+ ## Building
163
+
164
+ Most node classes are generated automatically with this. The nodes in
165
+ `nodes/manual.py` are currently manually specified due to varying
166
+ complexities of particular nodes (usually lergacy).
167
+
168
+ ``` bash
169
+ uv run generate.py && ruff format && ruff check --fix --unsafe-fixes
170
+ ```
@@ -70,8 +70,8 @@ tree
70
70
  graph LR
71
71
  N0("NodeGroupInput"):::default-node
72
72
  N1("RandomValue<br/><small>(-1,-1,-1) seed:2</small>"):::converter-node
73
- N2("RandomValue<br/><small>(-1,-1,-1) seed:1</small>"):::converter-node
74
- N3("AlignRotationToVector<br/><small>(0,0,1)</small>"):::converter-node
73
+ N2("RandomValue<br/><small>(-1,-1,-1)</small>"):::converter-node
74
+ N3("AlignRotationToVector"):::converter-node
75
75
  N4("AxisAngleToRotation<br/><small>(0,0,1)</small>"):::converter-node
76
76
  N5("InputPosition"):::input-node
77
77
  N6("Points"):::geometry-node
@@ -85,7 +85,7 @@ graph LR
85
85
  N14("RealizeInstances"):::geometry-node
86
86
  N15("InstanceOnPoints"):::geometry-node
87
87
  N16("NodeGroupOutput"):::default-node
88
- N1 -->|"Value>>Rotation"| N3
88
+ N1 -->|"Value>>Vector"| N3
89
89
  N4 -->|"Rotation>>Rotate By"| N8
90
90
  N3 -->|"Rotation>>Rotation"| N8
91
91
  N2 -->|"Value>>Position"| N6
@@ -134,3 +134,13 @@ actually build.
134
134
  - `TransformGeometry.matrix(CombineTrasnsform(translation=(0, 0, 1))`
135
135
  - `TransformGeoemtry.components(translation=(0, 0, 1))`
136
136
  - `TransformGeometry(translation=(0, 0, 1))`
137
+
138
+ ## Building
139
+
140
+ Most node classes are generated automatically with this. The nodes in
141
+ `nodes/manual.py` are currently manually specified due to varying
142
+ complexities of particular nodes (usually lergacy).
143
+
144
+ ``` bash
145
+ uv run generate.py && ruff format && ruff check --fix --unsafe-fixes
146
+ ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nodebpy"
3
- version = "0.2.1"
3
+ version = "0.3.1"
4
4
  description = "Build nodes in Blender with code"
5
5
  readme = "README.md"
6
6
  authors = [