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 /source/blender/blenkernel/intern | |
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 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/node.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index cfcd50dc482..7f423e53161 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -5235,6 +5235,7 @@ static void registerGeometryNodes() register_node_type_geo_realize_instances(); register_node_type_geo_sample_texture(); register_node_type_geo_select_by_handle_type(); + register_node_type_geo_string_join(); register_node_type_geo_material_selection(); register_node_type_geo_separate_components(); register_node_type_geo_set_position(); @@ -5254,6 +5255,9 @@ static void registerFunctionNodes() register_node_type_fn_input_string(); register_node_type_fn_input_vector(); register_node_type_fn_random_float(); + register_node_type_fn_string_length(); + register_node_type_fn_string_substring(); + register_node_type_fn_value_to_string(); } void BKE_node_system_init(void) |