22 b.add_output<
decl::Color>(
"Image"_ustr).structure_type(StructureType::Dynamic);
25 if (
node ==
nullptr) {
31 if (scene !=
nullptr) {
38 .default_value({0.0f, 0.0f, 0.0f, 1.0f})
39 .structure_type(StructureType::Dynamic);
48 node->id = id_cast<ID *>(scene);
63 if (this->
context().get_view_name().is_empty()) {
85 ntype.
ui_description =
"Combine the views (left and right) into a single stereo 3D output";
#define NODE_CLASS_CONVERTER
#define CMP_NODE_SWITCH_VIEW
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, const bNode &node)
const bNode & node() const
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
NodeOperation(Context &context, const bNode &node)
void node_register_type(bNodeType &ntype)
static void node_init_api(const bContext *C, PointerRNA *node_ptr)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
Scene * CTX_data_scene(const bContext *C)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
ListBaseT< SceneRenderView > views
std::string ui_description
void(*) initfunc_api(const bContext *C, PointerRNA *ptr)
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare