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
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void register_node_type_fn_boolean_math(void);
|
|
void register_node_type_fn_float_compare(void);
|
|
void register_node_type_fn_float_to_int(void);
|
|
void register_node_type_fn_input_string(void);
|
|
void register_node_type_fn_input_vector(void);
|
|
void register_node_type_fn_random_float(void);
|
|
void register_node_type_fn_string_length(void);
|
|
void register_node_type_fn_string_substring(void);
|
|
void register_node_type_fn_value_to_string(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|