21 b.add_input<
decl::Bool>(
"Switch").default_value(
false);
23 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
27 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
68 ntype.
ui_description =
"Switch between two images using a checkbox";
71 ntype.
declare = file_ns::cmp_node_switch_declare;
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
Result & get_input(StringRef identifier) const
void share_data(const Result &source)
T get_single_value_default(const T &default_value) const
StructureType structure_type
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_switch_declare(NodeDeclarationBuilder &b)
static void register_node_type_cmp_switch()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare