23 {0,
nullptr, 0,
nullptr,
nullptr},
60 rna_CacheFile_update(bmain, scene,
ptr);
84 "Layer '%s' not found in object '%s'",
86 cache_file->id.name + 2);
90 cache_file->active_layer = index + 1;
93static int rna_CacheFile_active_layer_index_get(
PointerRNA *
ptr)
96 return cache_file->active_layer - 1;
99static void rna_CacheFile_active_layer_index_set(
PointerRNA *
ptr,
int value)
102 cache_file->active_layer = value + 1;
105static void rna_CacheFile_active_layer_index_range(
114static void rna_CacheFileLayer_hidden_flag_set(
PointerRNA *
ptr,
const bool value)
122 layer->flag &= ~CACHEFILE_LAYER_HIDDEN;
129 const char *filepath)
132 if (layer ==
nullptr) {
134 reports,
RPT_ERROR,
"Cannot add a layer to CacheFile '%s'", cache_file->
id.
name + 2);
189 "Layer of the cache, used to load or override data from the first the first layer");
213 prop,
"rna_CacheFile_active_layer_get",
"rna_CacheFile_active_layer_set",
nullptr,
nullptr);
222 func,
"filepath",
"File Path", 0,
"",
"File path to the archive used as a layer");
225 parm =
RNA_def_pointer(func,
"layer",
"CacheFileLayer",
"",
"Newly created layer");
232 parm =
RNA_def_pointer(func,
"layer",
"CacheFileLayer",
"",
"Layer to remove");
252 prop,
"Sequence",
"Whether the cache is separated in a series of files");
258 "Use Render Engine Procedural",
259 "Display boxes in the viewport as placeholders for the objects, Cycles will use a "
260 "procedural to load the objects during viewport rendering in experimental mode, "
261 "other render engines will also receive a placeholder and should take care of loading the "
262 "Alembic data themselves if possible");
270 "Whether to use a custom frame for looking up data in the cache file,"
271 " instead of using the current scene frame");
279 "The time to use for looking up the data in the cache file,"
280 " or to determine which file to use in a file sequence");
288 "Subtracted from the current frame to use for "
289 "looking up the data in the cache file, or to "
290 "determine which file to use in a file sequence");
299 "When enabled, the Cycles Procedural will preload animation data for faster updates");
305 "Prefetch Cache Size",
306 "Memory usage limit in megabytes for the Cycles Procedural cache, if the data does not "
307 "fit within the limit, rendering is aborted");
330 "Value by which to enlarge or shrink the object with respect to the world's origin"
331 " (only applicable through a Transform Cache constraint)");
338 "rna_CacheFile_object_paths_begin",
339 "rna_iterator_listbase_next",
340 "rna_iterator_listbase_end",
341 "rna_iterator_listbase_get",
349 prop,
"Object Paths",
"Paths of the objects inside the Alembic archive");
355 "Velocity Attribute",
356 "Name of the Alembic attribute used for generating motion blur data");
366 "Define how the velocity vectors are interpreted with regard to time, 'frame' means "
367 "the delta time is 1 frame, 'second' means the delta time is 1 / FPS");
385 "rna_CacheFile_active_layer_index_get",
386 "rna_CacheFile_active_layer_index_set",
387 "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 struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_listbase_count(const struct 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)
void DEG_relations_tag_update(Main *bmain)
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
const Depsgraph * depsgraph
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
PointerRNA rna_pointer_inherit_refine(const PointerRNA *ptr, 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_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_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
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)