nodebpy 0.1.1__py3-none-any.whl → 0.2.1__py3-none-any.whl
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.
- nodebpy/builder.py +786 -316
- nodebpy/nodes/__init__.py +641 -10
- nodebpy/nodes/attribute.py +345 -389
- nodebpy/nodes/color.py +72 -0
- nodebpy/nodes/converter.py +3527 -0
- nodebpy/nodes/experimental.py +312 -0
- nodebpy/nodes/geometry.py +3677 -4717
- nodebpy/nodes/grid.py +1713 -0
- nodebpy/nodes/group.py +17 -0
- nodebpy/nodes/input.py +1821 -316
- nodebpy/nodes/interface.py +519 -0
- nodebpy/nodes/manual.py +2022 -0
- nodebpy/nodes/output.py +85 -0
- nodebpy/nodes/texture.py +930 -0
- nodebpy/nodes/vector.py +528 -0
- nodebpy/nodes/zone.py +442 -0
- nodebpy/screenshot.py +2 -1
- nodebpy/sockets.py +12 -12
- nodebpy/types.py +445 -0
- {nodebpy-0.1.1.dist-info → nodebpy-0.2.1.dist-info}/METADATA +5 -5
- nodebpy-0.2.1.dist-info/RECORD +26 -0
- nodebpy/nodes/curve.py +0 -2006
- nodebpy/nodes/manually_specified.py +0 -1382
- nodebpy/nodes/mesh.py +0 -1408
- nodebpy/nodes/types.py +0 -119
- nodebpy/nodes/utilities.py +0 -2344
- nodebpy-0.1.1.dist-info/RECORD +0 -19
- {nodebpy-0.1.1.dist-info → nodebpy-0.2.1.dist-info}/WHEEL +0 -0
- {nodebpy-0.1.1.dist-info → nodebpy-0.2.1.dist-info}/entry_points.txt +0 -0
nodebpy/nodes/types.py
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import typing
|
|
2
|
-
|
|
3
|
-
# Type aliases for node inputs
|
|
4
|
-
LINKABLE = "NodeSocket | NodeBuilder | Any"
|
|
5
|
-
TYPE_INPUT_VECTOR = "tuple[float, float, float] | NodeSocket | NodeBuilder | None"
|
|
6
|
-
TYPE_INPUT_ROTATION = (
|
|
7
|
-
"tuple[float, float, float, float] | NodeSocket | NodeBuilder | None"
|
|
8
|
-
)
|
|
9
|
-
TYPE_INPUT_BOOLEAN = "bool | NodeSocket | NodeBuilder | None"
|
|
10
|
-
|
|
11
|
-
_AttributeDomains = typing.Literal[
|
|
12
|
-
"POINT", "EDGE", "FACE", "CORNER", "CURVE", "INSTANCE", "LAYER"
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class DataTypes:
|
|
17
|
-
FLOAT = "FLOAT"
|
|
18
|
-
INT = "INT"
|
|
19
|
-
BOOL = "BOOL"
|
|
20
|
-
VECTOR = "VECTOR"
|
|
21
|
-
ROTATION = "ROTATION"
|
|
22
|
-
COLOR = "COLOR"
|
|
23
|
-
RGBA = "RGBA"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class AttributeTypes:
|
|
27
|
-
FLOAT = "FLOAT_VECTOR"
|
|
28
|
-
INT = "INT"
|
|
29
|
-
BOOL = "BOOL"
|
|
30
|
-
VECTOR = "VECTOR"
|
|
31
|
-
ROTATION = "ROTATION"
|
|
32
|
-
COLOR = "RGBA"
|
|
33
|
-
RGBA = "RGBA"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
FloatInterfaceSubtypes = typing.Literal[
|
|
37
|
-
"NONE",
|
|
38
|
-
"PERCENTAGE",
|
|
39
|
-
"FACTOR",
|
|
40
|
-
"ANGLE",
|
|
41
|
-
"TIME",
|
|
42
|
-
"TIME_ABSOLUTE",
|
|
43
|
-
"DISTANCE",
|
|
44
|
-
"WAVELENGTH",
|
|
45
|
-
"COLOR_TEMPERATURE",
|
|
46
|
-
"FREQUENCY",
|
|
47
|
-
]
|
|
48
|
-
VectorInterfaceSubtypes = typing.Literal[
|
|
49
|
-
"NONE",
|
|
50
|
-
"PERCENTAGE",
|
|
51
|
-
"FACTOR",
|
|
52
|
-
"ANGLE",
|
|
53
|
-
"TIME",
|
|
54
|
-
"TIME_ABSOLUTE",
|
|
55
|
-
"DISTANCE",
|
|
56
|
-
"WAVELENGTH",
|
|
57
|
-
"COLOR_TEMPERATURE",
|
|
58
|
-
"FREQUENCY",
|
|
59
|
-
]
|
|
60
|
-
|
|
61
|
-
IntegerInterfaceSubtypes = typing.Literal["NONE", "PERCENTAGE", "FACTOR"]
|
|
62
|
-
|
|
63
|
-
StringInterfaceSubtypes = typing.Literal["NONE", "FILE_PATH"]
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
NodeMathItems = typing.Literal[
|
|
67
|
-
"ADD", # Add.A + B.
|
|
68
|
-
"SUBTRACT", # Subtract.A - B.
|
|
69
|
-
"MULTIPLY", # Multiply.A * B.
|
|
70
|
-
"DIVIDE", # Divide.A / B.
|
|
71
|
-
"MULTIPLY_ADD", # Multiply Add.A * B + C.
|
|
72
|
-
"POWER", # Power.A power B.
|
|
73
|
-
"LOGARITHM", # Logarithm.Logarithm A base B.
|
|
74
|
-
"SQRT", # Square Root.Square root of A.
|
|
75
|
-
"INVERSE_SQRT", # Inverse Square Root.1 / Square root of A.
|
|
76
|
-
"ABSOLUTE", # Absolute.Magnitude of A.
|
|
77
|
-
"EXPONENT", # Exponent.exp(A).
|
|
78
|
-
"MINIMUM", # Minimum.The minimum from A and B.
|
|
79
|
-
"MAXIMUM", # Maximum.The maximum from A and B.
|
|
80
|
-
"LESS_THAN", # Less Than.1 if A < B else 0.
|
|
81
|
-
"GREATER_THAN", # Greater Than.1 if A > B else 0.
|
|
82
|
-
"SIGN", # Sign.Returns the sign of A.
|
|
83
|
-
"COMPARE", # Compare.1 if (A == B) within tolerance C else 0.
|
|
84
|
-
"SMOOTH_MIN", # Smooth Minimum.The minimum from A and B with smoothing C.
|
|
85
|
-
"SMOOTH_MAX", # Smooth Maximum.The maximum from A and B with smoothing C.
|
|
86
|
-
"ROUND", # Round.Round A to the nearest integer. Round upward if the fraction part is 0.5.
|
|
87
|
-
"FLOOR", # Floor.The largest integer smaller than or equal A.
|
|
88
|
-
"CEIL", # Ceil.The smallest integer greater than or equal A.
|
|
89
|
-
"TRUNC", # Truncate.The integer part of A, removing fractional digits.
|
|
90
|
-
"FRACT", # Fraction.The fraction part of A.
|
|
91
|
-
"MODULO", # Truncated Modulo.The remainder of truncated division using fmod(A,B).
|
|
92
|
-
"FLOORED_MODULO", # Floored Modulo.The remainder of floored division.
|
|
93
|
-
"WRAP", # Wrap.Wrap value to range, wrap(A,B).
|
|
94
|
-
"SNAP", # Snap.Snap to increment, snap(A,B).
|
|
95
|
-
"PINGPONG", # Ping-Pong.Wraps a value and reverses every other cycle (A,B).
|
|
96
|
-
"SINE", # Sine.sin(A).
|
|
97
|
-
"COSINE", # Cosine.cos(A).
|
|
98
|
-
"TANGENT", # Tangent.tan(A).
|
|
99
|
-
"ARCSINE", # Arcsine.arcsin(A).
|
|
100
|
-
"ARCCOSINE", # Arccosine.arccos(A).
|
|
101
|
-
"ARCTANGENT", # Arctangent.arctan(A).
|
|
102
|
-
"ARCTAN2", # Arctan2.The signed angle arctan(A / B).
|
|
103
|
-
"SINH", # Hyperbolic Sine.sinh(A).
|
|
104
|
-
"COSH", # Hyperbolic Cosine.cosh(A).
|
|
105
|
-
"TANH", # Hyperbolic Tangent.tanh(A).
|
|
106
|
-
"RADIANS", # To Radians.Convert from degrees to radians.
|
|
107
|
-
"DEGREES", # To Degrees.Convert from radians to degrees.
|
|
108
|
-
]
|
|
109
|
-
NodeBooleanMathItems = typing.Literal[
|
|
110
|
-
"AND", # And.True when both inputs are true.
|
|
111
|
-
"OR", # Or.True when at least one input is true.
|
|
112
|
-
"NOT", # Not.Opposite of the input.
|
|
113
|
-
"NAND", # Not And.True when at least one input is false.
|
|
114
|
-
"NOR", # Nor.True when both inputs are false.
|
|
115
|
-
"XNOR", # Equal.True when both inputs are equal (exclusive nor).
|
|
116
|
-
"XOR", # Not Equal.True when both inputs are different (exclusive or).
|
|
117
|
-
"IMPLY", # Imply.True unless the first input is true and the second is false.
|
|
118
|
-
"NIMPLY", # Subtract.True when the first input is true and the second is false (not imply).
|
|
119
|
-
]
|