22 b.add_output<
decl::Float>(
"Value").default_value(0.5f).custom_draw(
39 result.allocate_single_value();
44 result.set_single_value(value);
63 ntype.
ui_description =
"Input numerical values to other nodes in the node graph";
66 ntype.
declare = file_ns::cmp_node_value_declare;
#define NOD_REGISTER_NODE(REGISTER_FUNC)
const bNode & bnode() const
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
NodeOperation(Context &context, DNode node)
void node_register_type(bNodeType &ntype)
void node_type_size_preset(bNodeType &ntype, eNodeSizePreset size)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void cmp_node_value_declare(NodeDeclarationBuilder &b)
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
static void register_node_type_cmp_value()
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)