22 {0,
nullptr, 0,
nullptr,
nullptr},
79 "Layer '%s' not found in object '%s'",
81 cache_file->id.name + 2);
85 cache_file->active_layer = index + 1;
88static int rna_CacheFile_active_layer_index_get(
PointerRNA *
ptr)
91 return cache_file->active_layer - 1;
94static void rna_CacheFile_active_layer_index_set(
PointerRNA *
ptr,
int value)
97 cache_file->active_layer = value + 1;
100static void rna_CacheFile_active_layer_index_range(
109static void rna_CacheFileLayer_hidden_flag_set(
PointerRNA *
ptr,
const bool value)
124 const char *filepath)
127 if (layer ==
nullptr) {
129 reports,
RPT_ERROR,
"Cannot add a layer to CacheFile '%s'", cache_file->
id.
name + 2);
184 "Layer of the cache, used to load or override data from the first the first layer");
209 prop,
"rna_CacheFile_active_layer_get",
"rna_CacheFile_active_layer_set",
nullptr,
nullptr);
218 func,
"filepath",
"File Path", 0,
"",
"File path to the archive used as a layer");
221 parm =
RNA_def_pointer(func,
"layer",
"CacheFileLayer",
"",
"Newly created layer");
228 parm =
RNA_def_pointer(func,
"layer",
"CacheFileLayer",
"",
"Layer to remove");
249 prop,
"Sequence",
"Whether the cache is separated in a series of files");
257 "Whether to use a custom frame for looking up data in the cache file,"
258 " instead of using the current scene frame");
266 "The time to use for looking up the data in the cache file,"
267 " or to determine which file to use in a file sequence");
275 "Subtracted from the current frame to use for "
276 "looking up the data in the cache file, or to "
277 "determine which file to use in a file sequence");
300 "Value by which to enlarge or shrink the object with respect to the world's origin"
301 " (only applicable through a Transform Cache constraint)");
308 "rna_CacheFile_object_paths_begin",
309 "rna_iterator_listbase_next",
310 "rna_iterator_listbase_end",
311 "rna_iterator_listbase_get",
319 prop,
"Object Paths",
"Paths of the objects inside the Alembic archive");
325 "Velocity Attribute",
326 "Name of the Alembic attribute used for generating motion blur data");
336 "Define how the velocity vectors are interpreted with regard to time, 'frame' means "
337 "the delta time is 1 frame, 'second' means the delta time is 1 / FPS");
355 "rna_CacheFile_active_layer_index_get",
356 "rna_CacheFile_active_layer_index_set",
357 "rna_CacheFile_active_layer_index_range");
void BKE_cachefile_remove_layer(CacheFile *cache_file, CacheFileLayer *layer)
CacheFileLayer * BKE_cachefile_get_active_layer(CacheFile *cache_file)
CacheFileLayer * BKE_cachefile_add_layer(CacheFile *cache_file, const char filepath[1024])
void BKE_cachefile_reload(Depsgraph *depsgraph, CacheFile *cache_file)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_listbase_count(const ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE int max_ii(int a, int b)
#define BLT_I18NCONTEXT_UNIT
#define BLT_I18NCONTEXT_EDITOR_FILEBROWSER
void DEG_id_tag_update(ID *id, unsigned int flags)
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
BPy_StructRNA * depsgraph
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
void rna_def_animdata_common(StructRNA *srna)
const EnumPropertyItem rna_enum_velocity_unit_items[]
void RNA_def_cachefile(BlenderRNA *brna)
static void rna_def_cachefile_layer(BlenderRNA *brna)
static void rna_def_cachefile(BlenderRNA *brna)
static void rna_def_alembic_object_path(BlenderRNA *brna)
static void rna_def_cachefile_layers(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_cachefile_object_paths(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_define_lib_overridable(const bool make_overridable)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const EnumPropertyItem rna_enum_object_axis_items[]
void WM_main_add_notifier(uint type, void *reference)