Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 2,560 Lines • ▼ Show 20 Lines | static void rna_def_wipe(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "WipeVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "WipeVars", "effectdata"); | ||||
| prop = RNA_def_property(srna, "blur_width", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "blur_width", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "edgeWidth"); | RNA_def_property_float_sdna(prop, NULL, "edgeWidth"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Blur Width", "Width of the blur edge, in percentage relative to the image size"); | prop, "Blur Width", "Width of the blur edge, in percentage relative to the image size"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | ||||
| RNA_def_property_range(prop, DEG2RADF(-90.0f), DEG2RADF(90.0f)); | RNA_def_property_range(prop, DEG2RADF(-90.0f), DEG2RADF(90.0f)); | ||||
| RNA_def_property_ui_text(prop, "Angle", "Edge angle"); | RNA_def_property_ui_text(prop, "Angle", "Edge angle"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "direction", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "direction", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "forward"); | RNA_def_property_enum_sdna(prop, NULL, "forward"); | ||||
| RNA_def_property_enum_items(prop, wipe_direction_items); | RNA_def_property_enum_items(prop, wipe_direction_items); | ||||
| RNA_def_property_ui_text(prop, "Direction", "Wipe direction"); | RNA_def_property_ui_text(prop, "Direction", "Wipe direction"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "transition_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "transition_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "wipetype"); | RNA_def_property_enum_sdna(prop, NULL, "wipetype"); | ||||
| RNA_def_property_enum_items(prop, wipe_type_items); | RNA_def_property_enum_items(prop, wipe_type_items); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SEQUENCE); | RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SEQUENCE); | ||||
| RNA_def_property_ui_text(prop, "Transition Type", ""); | RNA_def_property_ui_text(prop, "Transition Type", ""); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_glow(StructRNA *srna) | static void rna_def_glow(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_struct_sdna_from(srna, "GlowVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "GlowVars", "effectdata"); | ||||
| prop = RNA_def_property(srna, "threshold", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "threshold", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "fMini"); | RNA_def_property_float_sdna(prop, NULL, "fMini"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Threshold", "Minimum intensity to trigger a glow"); | RNA_def_property_ui_text(prop, "Threshold", "Minimum intensity to trigger a glow"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "clamp", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "clamp", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "fClamp"); | RNA_def_property_float_sdna(prop, NULL, "fClamp"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Clamp", "Brightness limit of intensity"); | RNA_def_property_ui_text(prop, "Clamp", "Brightness limit of intensity"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "boost_factor", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "boost_factor", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "fBoost"); | RNA_def_property_float_sdna(prop, NULL, "fBoost"); | ||||
| RNA_def_property_range(prop, 0.0f, 10.0f); | RNA_def_property_range(prop, 0.0f, 10.0f); | ||||
| RNA_def_property_ui_text(prop, "Boost Factor", "Brightness multiplier"); | RNA_def_property_ui_text(prop, "Boost Factor", "Brightness multiplier"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "blur_radius", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "blur_radius", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "dDist"); | RNA_def_property_float_sdna(prop, NULL, "dDist"); | ||||
| RNA_def_property_range(prop, 0.5f, 20.0f); | RNA_def_property_range(prop, 0.5f, 20.0f); | ||||
| RNA_def_property_ui_text(prop, "Blur Distance", "Radius of glow effect"); | RNA_def_property_ui_text(prop, "Blur Distance", "Radius of glow effect"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "quality", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "quality", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "dQuality"); | RNA_def_property_int_sdna(prop, NULL, "dQuality"); | ||||
| RNA_def_property_range(prop, 1, 5); | RNA_def_property_range(prop, 1, 5); | ||||
| RNA_def_property_ui_text(prop, "Quality", "Accuracy of the blur effect"); | RNA_def_property_ui_text(prop, "Quality", "Accuracy of the blur effect"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "use_only_boost", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_only_boost", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "bNoComp", 0); | RNA_def_property_boolean_sdna(prop, NULL, "bNoComp", 0); | ||||
| RNA_def_property_ui_text(prop, "Only Boost", "Show the glow buffer only"); | RNA_def_property_ui_text(prop, "Only Boost", "Show the glow buffer only"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_transform(StructRNA *srna) | static void rna_def_transform(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem interpolation_items[] = { | static const EnumPropertyItem interpolation_items[] = { | ||||
| {0, "NONE", 0, "None", "No interpolation"}, | {0, "NONE", 0, "None", "No interpolation"}, | ||||
| Show All 10 Lines | static void rna_def_transform(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "TransformVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "TransformVars", "effectdata"); | ||||
| prop = RNA_def_property(srna, "scale_start_x", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "scale_start_x", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_float_sdna(prop, NULL, "ScalexIni"); | RNA_def_property_float_sdna(prop, NULL, "ScalexIni"); | ||||
| RNA_def_property_ui_text(prop, "Scale X", "Amount to scale the input in the X axis"); | RNA_def_property_ui_text(prop, "Scale X", "Amount to scale the input in the X axis"); | ||||
| RNA_def_property_ui_range(prop, 0, 10, 3, 6); | RNA_def_property_ui_range(prop, 0, 10, 3, 6); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "scale_start_y", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "scale_start_y", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_float_sdna(prop, NULL, "ScaleyIni"); | RNA_def_property_float_sdna(prop, NULL, "ScaleyIni"); | ||||
| RNA_def_property_ui_text(prop, "Scale Y", "Amount to scale the input in the Y axis"); | RNA_def_property_ui_text(prop, "Scale Y", "Amount to scale the input in the Y axis"); | ||||
| RNA_def_property_ui_range(prop, 0, 10, 3, 6); | RNA_def_property_ui_range(prop, 0, 10, 3, 6); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "use_uniform_scale", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_uniform_scale", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uniform_scale", 0); | RNA_def_property_boolean_sdna(prop, NULL, "uniform_scale", 0); | ||||
| RNA_def_property_ui_text(prop, "Uniform Scale", "Scale uniformly, preserving aspect ratio"); | RNA_def_property_ui_text(prop, "Uniform Scale", "Scale uniformly, preserving aspect ratio"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "translate_start_x", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "translate_start_x", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "xIni"); | RNA_def_property_float_sdna(prop, NULL, "xIni"); | ||||
| RNA_def_property_ui_text(prop, "Translate X", "Amount to move the input on the X axis"); | RNA_def_property_ui_text(prop, "Translate X", "Amount to move the input on the X axis"); | ||||
| RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6); | RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "translate_start_y", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "translate_start_y", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "yIni"); | RNA_def_property_float_sdna(prop, NULL, "yIni"); | ||||
| RNA_def_property_ui_text(prop, "Translate Y", "Amount to move the input on the Y axis"); | RNA_def_property_ui_text(prop, "Translate Y", "Amount to move the input on the Y axis"); | ||||
| RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6); | RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "rotation_start", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "rotation_start", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "rotIni"); | RNA_def_property_float_sdna(prop, NULL, "rotIni"); | ||||
| RNA_def_property_ui_text(prop, "Rotation", "Degrees to rotate the input"); | RNA_def_property_ui_text(prop, "Rotation", "Degrees to rotate the input"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "translation_unit", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "translation_unit", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "percent"); | RNA_def_property_enum_sdna(prop, NULL, "percent"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* not meant to be animated */ | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* not meant to be animated */ | ||||
| RNA_def_property_enum_items(prop, translation_unit_items); | RNA_def_property_enum_items(prop, translation_unit_items); | ||||
| RNA_def_property_ui_text(prop, "Translation Unit", "Unit of measure to translate the input"); | RNA_def_property_ui_text(prop, "Translation Unit", "Unit of measure to translate the input"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "interpolation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "interpolation", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, interpolation_items); | RNA_def_property_enum_items(prop, interpolation_items); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* not meant to be animated */ | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* not meant to be animated */ | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Interpolation", "Method to determine how missing pixels are created"); | prop, "Interpolation", "Method to determine how missing pixels are created"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_solid_color(StructRNA *srna) | static void rna_def_solid_color(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_struct_sdna_from(srna, "SolidColorVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "SolidColorVars", "effectdata"); | ||||
| Show All 11 Lines | static void rna_def_speed_control(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "multiply_speed", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "multiply_speed", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_float_sdna(prop, NULL, "globalSpeed"); | RNA_def_property_float_sdna(prop, NULL, "globalSpeed"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* seq->facf0 is used to animate this */ | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* seq->facf0 is used to animate this */ | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Multiply Speed", "Multiply the resulting speed after the speed factor"); | prop, "Multiply Speed", "Multiply the resulting speed after the speed factor"); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 100.0f, 1, -1); | RNA_def_property_ui_range(prop, 0.0f, 100.0f, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "use_as_speed", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_as_speed", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_INTEGRATE); | RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_INTEGRATE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Use as Speed", "Interpret the value as speed instead of a frame number"); | prop, "Use as Speed", "Interpret the value as speed instead of a frame number"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "use_scale_to_length", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_scale_to_length", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_COMPRESS_IPO_Y); | RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_COMPRESS_IPO_Y); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Scale to Length", "Scale values from 0.0 to 1.0 to target sequence length"); | prop, "Scale to Length", "Scale values from 0.0 to 1.0 to target sequence length"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "frame_interpolation_mode", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "frame_interpolation_mode", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_USE_INTERPOLATION); | RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_USE_INTERPOLATION); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Frame interpolation", "Do crossfade blending between current and next frame"); | prop, "Frame interpolation", "Do crossfade blending between current and next frame"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_gaussian_blur(StructRNA *srna) | static void rna_def_gaussian_blur(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_struct_sdna_from(srna, "GaussianBlurVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "GaussianBlurVars", "effectdata"); | ||||
| prop = RNA_def_property(srna, "size_x", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "size_x", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_ui_text(prop, "Size X", "Size of the blur along X axis"); | RNA_def_property_ui_text(prop, "Size X", "Size of the blur along X axis"); | ||||
| RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, -1); | RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "size_y", PROP_FLOAT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "size_y", PROP_FLOAT, PROP_UNSIGNED); | ||||
| RNA_def_property_ui_text(prop, "Size Y", "Size of the blur along Y axis"); | RNA_def_property_ui_text(prop, "Size Y", "Size of the blur along Y axis"); | ||||
| RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, -1); | RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_text(StructRNA *srna) | static void rna_def_text(StructRNA *srna) | ||||
| { | { | ||||
| /* Avoid text icons because they imply this aligns within a frame, see: T71082 */ | /* Avoid text icons because they imply this aligns within a frame, see: T71082 */ | ||||
| static const EnumPropertyItem text_align_x_items[] = { | static const EnumPropertyItem text_align_x_items[] = { | ||||
| {SEQ_TEXT_ALIGN_X_LEFT, "LEFT", ICON_ANCHOR_LEFT, "Left", ""}, | {SEQ_TEXT_ALIGN_X_LEFT, "LEFT", ICON_ANCHOR_LEFT, "Left", ""}, | ||||
| {SEQ_TEXT_ALIGN_X_CENTER, "CENTER", ICON_ANCHOR_CENTER, "Center", ""}, | {SEQ_TEXT_ALIGN_X_CENTER, "CENTER", ICON_ANCHOR_CENTER, "Center", ""}, | ||||
| Show All 13 Lines | static void rna_def_text(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "font", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "font", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "text_font"); | RNA_def_property_pointer_sdna(prop, NULL, "text_font"); | ||||
| RNA_def_property_ui_icon(prop, ICON_FILE_FONT, false); | RNA_def_property_ui_icon(prop, ICON_FILE_FONT, false); | ||||
| RNA_def_property_ui_text(prop, "Font", "Font of the text. Falls back to the UI font by default"); | RNA_def_property_ui_text(prop, "Font", "Font of the text. Falls back to the UI font by default"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_pointer_funcs(prop, NULL, "rna_Sequence_text_font_set", NULL, NULL); | RNA_def_property_pointer_funcs(prop, NULL, "rna_Sequence_text_font_set", NULL, NULL); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "font_size", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "font_size", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_sdna(prop, NULL, "text_size"); | RNA_def_property_int_sdna(prop, NULL, "text_size"); | ||||
| RNA_def_property_ui_text(prop, "Size", "Size of the text"); | RNA_def_property_ui_text(prop, "Size", "Size of the text"); | ||||
| RNA_def_property_range(prop, 0.0, 2000); | RNA_def_property_range(prop, 0.0, 2000); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1000, 1, -1); | RNA_def_property_ui_range(prop, 0.0f, 1000, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_float_sdna(prop, NULL, "color"); | RNA_def_property_float_sdna(prop, NULL, "color"); | ||||
| RNA_def_property_ui_text(prop, "Color", "Text color"); | RNA_def_property_ui_text(prop, "Color", "Text color"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "shadow_color", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "shadow_color", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_float_sdna(prop, NULL, "shadow_color"); | RNA_def_property_float_sdna(prop, NULL, "shadow_color"); | ||||
| RNA_def_property_ui_text(prop, "Shadow Color", ""); | RNA_def_property_ui_text(prop, "Shadow Color", ""); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ); | prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ); | ||||
| RNA_def_property_float_sdna(prop, NULL, "loc"); | RNA_def_property_float_sdna(prop, NULL, "loc"); | ||||
| RNA_def_property_ui_text(prop, "Location", "Location of the text"); | RNA_def_property_ui_text(prop, "Location", "Location of the text"); | ||||
| RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 1, -1); | RNA_def_property_ui_range(prop, 0.0, 1.0, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "wrap_width", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "wrap_width", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "wrap_width"); | RNA_def_property_float_sdna(prop, NULL, "wrap_width"); | ||||
| RNA_def_property_ui_text(prop, "Wrap Width", "Word wrap width as factor, zero disables"); | RNA_def_property_ui_text(prop, "Wrap Width", "Word wrap width as factor, zero disables"); | ||||
| RNA_def_property_range(prop, 0, FLT_MAX); | RNA_def_property_range(prop, 0, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 1, -1); | RNA_def_property_ui_range(prop, 0.0, 1.0, 1, -1); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "align_x", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "align_x", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "align"); | RNA_def_property_enum_sdna(prop, NULL, "align"); | ||||
| RNA_def_property_enum_items(prop, text_align_x_items); | RNA_def_property_enum_items(prop, text_align_x_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Align X", "Align the text along the X axis, relative to the text bounds"); | prop, "Align X", "Align the text along the X axis, relative to the text bounds"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "align_y", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "align_y", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "align_y"); | RNA_def_property_enum_sdna(prop, NULL, "align_y"); | ||||
| RNA_def_property_enum_items(prop, text_align_y_items); | RNA_def_property_enum_items(prop, text_align_y_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Align Y", "Align the text along the Y axis, relative to the text bounds"); | prop, "Align Y", "Align the text along the Y axis, relative to the text bounds"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "text", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "text", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_ui_text(prop, "Text", "Text that will be displayed"); | RNA_def_property_ui_text(prop, "Text", "Text that will be displayed"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "use_shadow", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_shadow", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_TEXT_SHADOW); | RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_TEXT_SHADOW); | ||||
| RNA_def_property_ui_text(prop, "Shadow", "Display shadow behind text"); | RNA_def_property_ui_text(prop, "Shadow", "Display shadow behind text"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static void rna_def_color_mix(StructRNA *srna) | static void rna_def_color_mix(StructRNA *srna) | ||||
| { | { | ||||
| static EnumPropertyItem blend_color_items[] = { | static EnumPropertyItem blend_color_items[] = { | ||||
| {SEQ_TYPE_DARKEN, "DARKEN", 0, "Darken", ""}, | {SEQ_TYPE_DARKEN, "DARKEN", 0, "Darken", ""}, | ||||
| {SEQ_TYPE_MUL, "MULTIPLY", 0, "Multiply", ""}, | {SEQ_TYPE_MUL, "MULTIPLY", 0, "Multiply", ""}, | ||||
| {SEQ_TYPE_COLOR_BURN, "BURN", 0, "Color Burn", ""}, | {SEQ_TYPE_COLOR_BURN, "BURN", 0, "Color Burn", ""}, | ||||
| Show All 27 Lines | static void rna_def_color_mix(StructRNA *srna) | ||||
| RNA_def_struct_sdna_from(srna, "ColorMixVars", "effectdata"); | RNA_def_struct_sdna_from(srna, "ColorMixVars", "effectdata"); | ||||
| prop = RNA_def_property(srna, "blend_effect", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "blend_effect", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "blend_effect"); | RNA_def_property_enum_sdna(prop, NULL, "blend_effect"); | ||||
| RNA_def_property_enum_items(prop, blend_color_items); | RNA_def_property_enum_items(prop, blend_color_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Blending Mode", "Method for controlling how the strip combines with other strips"); | prop, "Blending Mode", "Method for controlling how the strip combines with other strips"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Blend Factor", "Percentage of how much the strip's colors affect other strips"); | prop, "Blend Factor", "Percentage of how much the strip's colors affect other strips"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| } | } | ||||
| static EffectInfo def_effects[] = { | static EffectInfo def_effects[] = { | ||||
| {"AddSequence", "Add Sequence", "Add Sequence", NULL, 2}, | {"AddSequence", "Add Sequence", "Add Sequence", NULL, 2}, | ||||
| {"AdjustmentSequence", | {"AdjustmentSequence", | ||||
| "Adjustment Layer Sequence", | "Adjustment Layer Sequence", | ||||
| "Sequence strip to perform filter adjustments to layers below", | "Sequence strip to perform filter adjustments to layers below", | ||||
| rna_def_input, | rna_def_input, | ||||
| ▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines | |||||