16 b.use_custom_socket_order();
17 b.allow_any_socket_order();
20 .align_with_previous()
21 .
description(
"Grease Pencil to set the softness of");
23 .propagate_all_geometry()
24 .align_with_previous();
28 .evaluated_geometry_field();
33 .evaluated_geometry_field();
45 for (
const int layer_index :
grease_pencil->layers().index_range()) {
47 if (drawing ==
nullptr) {
65 params.
set_output(
"Grease Pencil"_ustr, std::move(geometry_set));
73 ntype.
ui_name =
"Set Grease Pencil Softness";
74 ntype.
ui_description =
"Set softness attribute on Grease Pencil geometry";
Low-level operations for curves.
Low-level operations for grease pencil.
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bke::CurvesGeometry & strokes_for_write()
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
bool try_capture_fields_on_geometry(MutableAttributeAccessor attributes, const fn::FieldContext &field_context, Span< StringRef > names, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields)
void node_register_type(bNodeType &ntype)
void foreach_real_geometry(bke::GeometrySet &geometry, FunctionRef< void(bke::GeometrySet &geometry_set)> fn)
static void node_geo_exec(GeoNodeExecParams params)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
static constexpr int _180
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare