Roberto Saccon
80524d64e8
Vector Options added
...
Unfortunately the typing system cannot handle `tuple | None` so default vector needs to be defined be defining `default_x`, `default_y` and `default_z`
2023-12-08 10:10:59 +01:00
Roberto Saccon
9e998f6fa9
WIP: added Input options class documentation
2023-12-06 11:32:48 +01:00
Roberto Saccon
fa9b3db75a
New approach witch InputOptions class
2023-12-06 06:29:21 +01:00
Roberto Saccon
abaf93f3e9
commented out the non-working subtype option
2023-12-04 00:20:27 +01:00
Roberto Saccon
6ddd546a1d
added more input options
...
a new InputObject class allows to use the following input options: min, max, name, subtype, tooltip, hide_in_modifer
setting subtype does not work (yet), only the menu label gets changed
2023-12-02 05:35:27 +01:00
Roberto Saccon
a1aac89c19
Added min / max option for numeric input values
...
Usage examples
min only:
---------
def test(value: Int[0]): pass
def test(value: Float[0.0]): pass
min, max
---------
def test(value: Int[0, 1]): pass
def test(value: Float[0.0, 1.0]): pass
min, max (slice notation)
-------------------------
def test(value: Int[0:1]): pass
def test(value: Float[0.0:1.0]): pass
2023-12-01 03:36:54 +01:00
Alfredo
6952ec507a
replace dictionary used to count node input links with collections.Counter
2023-11-17 13:49:19 -05:00
Alfredo
e380e6f9db
precalculate number of links to node input sockets to avoid using the 'links' property
2023-11-17 13:49:19 -05:00
Alfredo
f0d43fb92d
disambiguate duplicate variable name 'node' within inner loop for readability
2023-11-17 13:49:19 -05:00
Alfredo
5cf07a1af5
rewrite topological sort, avoiding calls to the expensive 'links' property of the NodeSocket class
2023-11-17 13:49:19 -05:00
Carson Katri
8a1b4c4321
Add check for nested trees
2023-11-17 13:45:46 -05:00
Carson Katri
6c25f12729
Support Blender 3.x alongside 4.x
2023-11-17 13:45:46 -05:00
Carson Katri
56d61980ad
Allow passing domain to `store`
2023-11-17 13:45:46 -05:00
Carson Katri
da99654edb
Add repeat zone support
2023-11-15 12:55:31 -05:00
Alfredo
e3befbefc9
Migrate to NodeTree.interface API for Blender 4.0 release
2023-11-11 14:09:37 -05:00
Carson Katri
63a7516905
Refactor simulation API to use `simulation_zone` decorator
2023-11-11 14:04:40 -05:00
Carson Katri
467ae71ec6
Add curve support
2023-11-11 14:04:20 -05:00
Alfredo
1ffed55184
support more math dunder methods
2023-10-08 10:58:29 -04:00
Adam P
f42e0ba456
Fix some cases of node name collisions
...
Some compositor and texture nodes share names with the geometry nodes versions. This change sorts them so that the geometry ones are registered last, overriding the incorrect ones. The Math node is handled separately, because here the ShaderNodeMath is the correct one to use, for some reason.
2023-04-21 16:56:05 -04:00
Carson Katri
258a7c51c6
Update for Blender 3.5 release
2023-04-01 16:33:48 -04:00
Carson Katri
bfe5aae3cd
Fix capture
2023-02-12 11:11:03 -05:00
Carson Katri
87793fe8d1
Use isinstance for Named Attribute
2023-02-12 11:08:20 -05:00
Carson Katri
16a11e91af
Handle dict output
2022-12-09 15:51:38 -05:00
Carson Katri
86023a2bb5
Add simulation decorator
2022-12-01 09:07:07 -05:00
Carson Katri
bdf703c33a
Add built-in node arrange and documentation
2022-12-01 07:37:35 -05:00
Carson Katri
dddf0d93d9
Add Attribute class for named attributes
2022-11-28 21:09:27 -05:00
Carson Katri
a3337dbdbf
Improve invert and linking logic
2022-11-28 17:32:21 -05:00
Carson Katri
db323268a2
Use InputGroup default values
2022-11-20 18:57:16 -05:00
Carson Katri
7001a179c0
Add scripted_expression helper function
2022-11-20 18:47:37 -05:00
Carson Katri
f50fa922be
Change capture/transfer behavior
2022-11-20 18:16:25 -05:00
Carson Katri
66ade0a739
Support prefixes for InputGroups
2022-11-19 15:00:26 -05:00
Carson Katri
852823af30
Fix multiple returns from sub-tree
2022-11-19 08:44:40 -05:00
Carson Katri
7a52377ae9
Improve and document 'capture'
2022-11-18 19:04:34 -05:00
Carson Katri
b1f1edba94
Add sugar for Capture Attribute
2022-11-18 18:27:56 -05:00
Carson Katri
48929cea93
Add documentation to InputGroups and fix input recreation
2022-11-18 18:23:51 -05:00
Carson Katri
aa11b398a0
Add InputGroup to simplify large sets of inputs
2022-11-17 18:13:07 -05:00
Carson Katri
e7bae54662
Update examples to use generated enums
2022-11-17 13:18:08 -05:00
Carson Katri
828fb8b6da
Add enum generation
2022-11-17 13:07:50 -05:00
Carson Katri
146e83f8ae
Add mdbook
2022-11-15 12:59:28 -05:00
Carson Katri
3850ec011c
Support generators and add City Builder example
2022-11-14 22:32:32 -05:00
Carson Katri
c28d6ced93
Add default argument value support
2022-11-14 18:31:26 -05:00
Carson Katri
7dc083e361
Add helpers for working with external files and docs
2022-11-13 18:49:09 -05:00