procfunc 0.30.1__tar.gz → 0.30.2__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.
- {procfunc-0.30.1/src/procfunc.egg-info → procfunc-0.30.2}/PKG-INFO +1 -1
- {procfunc-0.30.1 → procfunc-0.30.2}/pyproject.toml +2 -2
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/__init__.py +1 -1
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/execute/construct_special_cases.py +8 -0
- {procfunc-0.30.1 → procfunc-0.30.2/src/procfunc.egg-info}/PKG-INFO +1 -1
- {procfunc-0.30.1 → procfunc-0.30.2}/LICENSE.md +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/README.md +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/setup.cfg +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/color.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/compute_graph.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/node.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/operators_info.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/proxy.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/compute_graph/util.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/context.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/control.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/bindings_util.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/bpy_node_info.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/compositor.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/execute/construct_nodes.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/execute/execute.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/execute/infer_runtime_data_type.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/execute/util.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/func.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/geo.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/manifest.json +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/math.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/node_function.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/shader.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/nodes/types.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/_util.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/addons.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/attr.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/collection.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/curve.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/file.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/manifest.json +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/mesh.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/modifier.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/object.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/primitives/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/primitives/camera.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/primitives/curve.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/primitives/light.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/primitives/mesh.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/ops/uv.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/random.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/tracer/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/tracer/decorator.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/tracer/patch.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/tracer/proxy.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/tracer/trace.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/cleanup.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/convert.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/distribution.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/extract_materials.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/infer_distribution.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/parameters.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transforms/util.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transpiler/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transpiler/bpy_to_computegraph.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transpiler/codegen.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transpiler/identifiers.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/transpiler/main.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/types.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/__init__.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/bpy_info.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/camera.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/keyframe.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/log.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/manifest.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/pytree.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc/util/teardown.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc.egg-info/SOURCES.txt +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc.egg-info/dependency_links.txt +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc.egg-info/requires.txt +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/src/procfunc.egg-info/top_level.txt +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_asset.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_compute_graph.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_dedup_names.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_ops.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_pytree.py +0 -0
- {procfunc-0.30.1 → procfunc-0.30.2}/tests/test_trace.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "procfunc"
|
|
7
|
-
version = "0.30.
|
|
7
|
+
version = "0.30.2"
|
|
8
8
|
description = "Function-Oriented Abstractions for Procedural 3D Generation in Python"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "BSD-3-Clause"
|
|
@@ -35,7 +35,7 @@ docs = [
|
|
|
35
35
|
where = ["src"]
|
|
36
36
|
|
|
37
37
|
[tool.setuptools.package-data]
|
|
38
|
-
procfunc = ["
|
|
38
|
+
procfunc = ["nodes/manifest.json", "ops/manifest.json"]
|
|
39
39
|
|
|
40
40
|
[tool.pytest.ini_options]
|
|
41
41
|
testpaths = "tests"
|
|
@@ -69,6 +69,10 @@ def special_case_float_curve(
|
|
|
69
69
|
if i < len(curve.points):
|
|
70
70
|
curve.points[i].location = (x, y)
|
|
71
71
|
|
|
72
|
+
# Without update(), Blender keeps the default identity LUT and ignores
|
|
73
|
+
# the points we just assigned during geo/shader node evaluation.
|
|
74
|
+
bl_node.mapping.update()
|
|
75
|
+
|
|
72
76
|
|
|
73
77
|
def special_case_rgb_curves(
|
|
74
78
|
bl_node: bpy.types.Node,
|
|
@@ -88,6 +92,8 @@ def special_case_rgb_curves(
|
|
|
88
92
|
for i, (x, y) in enumerate(curve_np):
|
|
89
93
|
bl_curve.points[i].location = (x, y)
|
|
90
94
|
|
|
95
|
+
bl_node.mapping.update()
|
|
96
|
+
|
|
91
97
|
|
|
92
98
|
def special_case_vector_curves(
|
|
93
99
|
bl_node: bpy.types.Node,
|
|
@@ -107,6 +113,8 @@ def special_case_vector_curves(
|
|
|
107
113
|
for i, (x, y) in enumerate(curve_np):
|
|
108
114
|
bl_curve.points[i].location = (x, y)
|
|
109
115
|
|
|
116
|
+
bl_node.mapping.update()
|
|
117
|
+
|
|
110
118
|
|
|
111
119
|
def special_case_file_output(
|
|
112
120
|
bl_node: bpy.types.Node,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|