28#include "RNA_prototypes.hh"
52static std::pair<const Strip *, const StripModifierData *>
57 return {
static_cast<const Strip *
>(strip->data),
61 const Scene *sequencer_scene = id_cast<const Scene *>(ptr->
owner_id);
68 if (id_prop == ptr->data) {
83 return static_cast<const Strip *
>(strip->data);
85 const Scene *sequencer_scene = id_cast<const Scene *>(ptr->
owner_id);
95 if (id_prop == ptr->data) {
115 return fmt::format(
"sequence_editor.strips_all[\"{}\"].modifiers[\"{}\"].properties.inputs.{}",
130 "sequence_editor.strips_all[\"{}\"].properties.inputs.{}", strip_name_esc, identifier);
181 tree.ensure_interface_cache();
188 fmt::format(
"open_{}", panel.identifier));
203 auto generated = std::make_unique<GeneratedTreeSrnaData>();
204 tree.ensure_interface_cache();
207 generated->generated_rna,
"CompositorNodesInterface", context.properties_struct);
208 generated->properties_struct = srna;
216 srna,
"inputs", inputs_srna,
"Inputs",
"Settings for input sockets");
StringRefNull copy_string(StringRef str)
LinearAllocator & allocator()
constexpr const char * c_str() const
static StructRNA * create_inputs_srna(const bNodeTree &tree, const CompositorNodesSrnaContext &context, GeneratedTreeSrnaData &r_generated)
static const Strip * find_effect_strip_from_system_property(const PointerRNA *ptr)
const EnumPropertyItem compositor_nodes_input_type_items_value[]
const EnumPropertyItem compositor_nodes_input_type_items_fallback[]
static std::pair< const Strip *, const StripModifierData * > find_strip_and_modifier_data_from_system_property(const PointerRNA *ptr)
static StructRNA * create_panels_srna(const bNodeTree &tree, GeneratedTreeSrnaData &r_generated)
static StructRNA * get_input_socket_struct_rna(const bNodeTree &tree, const bNodeTreeInterfaceSocket &socket, const CompositorNodesSrnaContext &context, GeneratedTreeSrnaData &r_generated)
std::shared_ptr< GeneratedTreeSrnaData > create_compositor_nodes_rna_for_effect(const bNodeTree &tree)
static constexpr EnumPropertyItem input_type_item_fallback
static constexpr EnumPropertyItem input_type_item_value
std::shared_ptr< GeneratedTreeSrnaData > create_compositor_nodes_rna_for_strip_modifier(const bNodeTree &tree)
static std::optional< std::string > rna_CompositorNodesEffectPropertyInput_path(const PointerRNA *ptr)
static std::shared_ptr< GeneratedTreeSrnaData > create_compositor_nodes_rna(const bNodeTree &tree, const CompositorNodesSrnaContext &context)
static std::optional< std::string > rna_CompositorNodesModifierPropertyInput_path(const PointerRNA *ptr)
Editing * editing_get(const Scene *scene)
VectorSet< Strip * > query_all_strips_recursive(const ListBaseT< Strip > *seqbase)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
std::optional< AncestorPointerRNA > RNA_struct_search_closest_ancestor_by_type(const PointerRNA *ptr, const StructRNA *srna)
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
@ NODE_INTERFACE_PANEL_DEFAULT_CLOSED
StructRNA RNA_PropertyGroup
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
const char * RNA_struct_identifier(const StructRNA *type)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_struct_path_func_runtime(StructRNA *srna, StructPathFunc path_fn)
std::optional< std::string >(*)(const PointerRNA *ptr) StructPathFunc
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
struct IDProperty * system_properties
SocketMakeNodesInputSrnaFunction make_compositor_nodes_input_srna
StructRNA * properties_struct
BlenderRNA * generated_rna