Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_movieclip.c
| Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | static void rna_def_movieclip_proxy(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "timecode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "timecode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "tc"); | RNA_def_property_enum_sdna(prop, NULL, "tc"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_enum_items(prop, clip_tc_items); | RNA_def_property_enum_items(prop, clip_tc_items); | ||||
| RNA_def_property_ui_text(prop, "Timecode", ""); | RNA_def_property_ui_text(prop, "Timecode", ""); | ||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | ||||
| /* custom proxy directory */ | |||||
| prop = RNA_def_property(srna, "use_proxy_custom_directory", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MCLIP_USE_PROXY_CUSTOM_DIR); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Proxy Custom Directory", | |||||
| "Create proxy images in a custom directory (default is movie location)"); | |||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | |||||
| /* directory */ | /* directory */ | ||||
| prop = RNA_def_property(srna, "directory", PROP_STRING, PROP_DIRPATH); | prop = RNA_def_property(srna, "directory", PROP_STRING, PROP_DIRPATH); | ||||
| RNA_def_property_string_sdna(prop, NULL, "dir"); | RNA_def_property_string_sdna(prop, NULL, "dir"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text(prop, "Directory", "Location to store the proxy files"); | RNA_def_property_ui_text(prop, "Directory", "Location to store the proxy files"); | ||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | static void rna_def_movieclip(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL); | ||||
| /* source */ | /* source */ | ||||
| prop = RNA_def_property(srna, "source", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "source", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, clip_source_items); | RNA_def_property_enum_items(prop, clip_source_items); | ||||
| RNA_def_property_ui_text(prop, "Source", "Where the clip comes from"); | RNA_def_property_ui_text(prop, "Source", "Where the clip comes from"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| /* custom proxy directory */ | |||||
| prop = RNA_def_property(srna, "use_proxy_custom_directory", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MCLIP_USE_PROXY_CUSTOM_DIR); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Proxy Custom Directory", | |||||
| "Create proxy images in a custom directory (default is movie location)"); | |||||
| RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClip_reload_update"); | |||||
| /* grease pencil */ | /* grease pencil */ | ||||
| prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | ||||
| RNA_def_property_struct_type(prop, "GreasePencil"); | RNA_def_property_struct_type(prop, "GreasePencil"); | ||||
| RNA_def_property_pointer_funcs( | RNA_def_property_pointer_funcs( | ||||
| prop, NULL, NULL, NULL, "rna_GPencil_datablocks_annotations_poll"); | prop, NULL, NULL, NULL, "rna_GPencil_datablocks_annotations_poll"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_ui_text(prop, "Grease Pencil", "Grease pencil data for this movie clip"); | RNA_def_property_ui_text(prop, "Grease Pencil", "Grease pencil data for this movie clip"); | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||