diff options
author | Erik Abrahamsson <erik85> | 2021-09-21 22:11:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-21 22:11:32 +0300 |
commit | 29e3545194804428676b0adf881f418a96a40a9a (patch) | |
tree | abd639517e3004bb34748dbfae726e8b411de71e /release/scripts/startup/nodeitems_builtins.py | |
parent | 05ce5276db7be4f742b6558d723a989eae4963a3 (diff) |
Geometry Nodes: String manipulation nodes
This patch adds four new nodes to a new "Text" category:
- String Length: Outputs length of a string
- String Substring: Outputs part of a string
- Value to String: Converts a value to a string
- String Join: Concatenates multiple strings with a delimiter
The initial use case of these nodes is the upcoming string to curve
node. However, they could also be used to calculate dynamic attribute
names, or with string attributes in the future.
Differential Revision: https://developer.blender.org/D12532
Diffstat (limited to 'release/scripts/startup/nodeitems_builtins.py')
-rw-r--r-- | release/scripts/startup/nodeitems_builtins.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py index ea9305caff3..5ec1db0baf8 100644 --- a/release/scripts/startup/nodeitems_builtins.py +++ b/release/scripts/startup/nodeitems_builtins.py @@ -598,6 +598,12 @@ geometry_node_categories = [ NodeItem("GeometryNodeLegacyRotatePoints", poll=geometry_nodes_fields_legacy_poll), NodeItem("GeometryNodeLegacyAlignRotationToVector", poll=geometry_nodes_fields_legacy_poll), ]), + GeometryNodeCategory("GEO_TEXT", "Text", items=[ + NodeItem("FunctionNodeStringLength"), + NodeItem("FunctionNodeStringSubstring"), + NodeItem("FunctionNodeValueToString"), + NodeItem("GeometryNodeStringJoin"), + ]), GeometryNodeCategory("GEO_UTILITIES", "Utilities", items=[ NodeItem("ShaderNodeMapRange"), NodeItem("ShaderNodeClamp"), |