54 static char *rna_DynamicPaintCanvasSettings_path(
PointerRNA *
ptr)
58 char name_esc[
sizeof(md->name) * 2];
61 return BLI_sprintfN(
"modifiers[\"%s\"].canvas_settings", name_esc);
64 static char *rna_DynamicPaintBrushSettings_path(
PointerRNA *
ptr)
68 char name_esc[
sizeof(md->name) * 2];
71 return BLI_sprintfN(
"modifiers[\"%s\"].brush_settings", name_esc);
78 char name_esc[
sizeof(md->name) * 2];
79 char name_esc_surface[
sizeof(
surface->name) * 2];
84 "modifiers[\"%s\"].canvas_settings.canvas_surfaces[\"%s\"]", name_esc, name_esc_surface);
91 static void rna_DynamicPaint_redoModifier(
Main *
UNUSED(bmain),
98 static void rna_DynamicPaintSurfaces_updateFrames(
Main *
UNUSED(bmain),
108 rna_DynamicPaint_redoModifier(bmain,
scene,
ptr);
115 surface->init_layername[0] =
'\0';
117 rna_DynamicPaint_redoModifier(bmain,
scene,
ptr);
120 static void rna_DynamicPaintSurface_uniqueName(
Main *
UNUSED(bmain),
132 rna_DynamicPaintSurface_reset(bmain,
scene,
ptr);
141 rna_DynamicPaintSurface_reset(bmain,
scene,
ptr);
144 static void rna_DynamicPaint_reset_dependency(
Main *bmain,
153 rna_DynamicPaintSurface_reset(bmain,
scene,
ptr);
154 rna_DynamicPaint_reset_dependency(bmain,
scene,
ptr);
177 iter, (
void *)canvas->
surfaces,
sizeof(PaintSurface), canvas->totsur, 0, 0);
182 static int rna_Surface_active_point_index_get(
PointerRNA *
ptr)
188 static void rna_Surface_active_point_index_set(
struct PointerRNA *
ptr,
int value)
195 static void rna_Surface_active_point_range(
205 static void rna_DynamicPaint_uvlayer_set(
PointerRNA *
ptr,
const char *value)
222 static bool rna_DynamicPaint_is_cache_user_get(
PointerRNA *
ptr)
248 tmp.identifier =
"PAINT";
250 tmp.icon = ICON_TPAINT_HLT;
257 tmp.identifier =
"DISPLACE";
258 tmp.name =
"Displace";
259 tmp.icon = ICON_MOD_DISPLACE;
266 tmp.identifier =
"WEIGHT";
268 tmp.icon = ICON_MOD_VERTEX_WEIGHT;
275 tmp.identifier =
"WAVE";
277 tmp.icon = ICON_MOD_WAVE;
303 "rna_Surface_active_point_index_get",
304 "rna_Surface_active_point_index_set",
305 "rna_Surface_active_point_range");
348 {1,
"SPREAD", 0,
"Spread",
""},
349 {2,
"DRIP", 0,
"Drip",
""},
350 {3,
"SHRINK", 0,
"Shrink",
""},
406 prop,
"Brush Collection",
"Only use brush objects from this collection");
423 prop,
"Dissolve Time",
"Approximately in how many frames should dissolve happen");
433 prop,
"Dry Time",
"Approximately in how many frames should drying happen");
470 prop,
"Sub-Steps",
"Do extra frames between scene frames to ensure smooth motion");
483 prop,
"Influence Scale",
"Adjust influence brush objects have on this surface");
491 prop,
"Radius Scale",
"Adjust radius of proximity brushes or particles for this surface");
504 "rna_DynamicPaintSurface_initialcolortype");
535 prop,
"Slow",
"Use logarithmic drying (makes high values to dry faster than low values)");
540 prop,
"Slow",
"Use logarithmic dissolve (makes high values to fade faster than low values)");
546 prop,
"Use Spread",
"Process spread effect (spread wet paint around surface)");
554 prop,
"Spread Speed",
"How fast spread effect moves on the canvas surface");
561 prop,
"Color Dry",
"The wetness level when colors start to shift to the background");
573 prop,
"Use Drip",
"Process drip effect (drip wet paint to gravity direction)");
587 prop,
"Shrink Speed",
"How fast shrink effect moves on the canvas surface");
613 prop,
"Premultiply Alpha",
"Multiply color by alpha (recommended for Blender input)");
638 func =
RNA_def_function(srna,
"output_exists",
"rna_DynamicPaint_is_output_exists");
642 parm =
RNA_def_int(func,
"index", 0, 0, 1,
"Index",
"", 0, 1);
655 "Maximum level of depth intersection in object space (use 0.0 to disable)");
664 prop,
"Displace Factor",
"Strength of displace when applied to the mesh");
682 prop,
"Incremental",
"New displace is added cumulatively on top of existing");
711 "Limit maximum steepness of wave slope between simulation points "
712 "(use higher values for smoother waves at expense of reduced detail)");
747 "rna_DynamicPaint_surfaces_begin",
748 "rna_iterator_listbase_next",
749 "rna_iterator_listbase_end",
750 "rna_iterator_listbase_get",
821 prop,
"Absolute Alpha",
"Only increase alpha value if paint alpha is higher than existing");
830 "Paint wetness, visible in wetmap (some effects only affect wet paint)");
854 "Maximum level of surface intersection used to influence waves (use 0.0 to disable)");
859 prop,
"Do Smudge",
"Make this brush to smudge existing paint as it moves");
871 prop,
"Max Velocity",
"Velocity considered as maximum influence (Blender units per frame)");
876 prop,
"Multiply Alpha",
"Multiply brush influence by velocity color ramp alpha");
884 "Multiply brush intersection depth (displace, waves) by velocity ramp alpha");
907 prop,
"Proximity Distance",
"Maximum distance from brush to mesh surface to affect paint");
927 "Brush is projected to canvas from defined direction within brush proximity");
936 "Ray direction to use for projection (if brush object is located in that direction "
943 prop,
"Inner Proximity",
"Proximity falloff is applied inside the volume");
987 prop,
"Paint Color Ramp",
"Color ramp used to define proximity falloff");
994 prop,
"Velocity Color Ramp",
"Color ramp used to define brush velocity effect");
bool dynamicPaint_outputLayerExists(struct DynamicPaintSurface *surface, struct Object *ob, int output)
void dynamicPaintSurface_updateType(struct DynamicPaintSurface *surface)
void dynamicPaintSurface_setUniqueName(struct DynamicPaintSurface *surface, const char *basename)
bool dynamicPaint_resetSurface(const struct Scene *scene, struct DynamicPaintSurface *surface)
void dynamicPaint_clearSurface(const struct Scene *scene, struct DynamicPaintSurface *surface)
void dynamicPaint_cacheUpdateFrames(struct DynamicPaintSurface *surface)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, const size_t dst_maxncpy) ATTR_NONNULL()
void DEG_id_tag_update(struct ID *id, int flag)
void DEG_relations_tag_update(struct Main *bmain)
@ MOD_DPAINT_DISP_DISPLACE
@ MOD_DPAINT_INITIAL_NONE
@ MOD_DPAINT_INITIAL_VERTEXCOLOR
@ MOD_DPAINT_INITIAL_COLOR
@ MOD_DPAINT_INITIAL_TEXTURE
@ MOD_DPAINT_EFFECT_DO_DRIP
@ MOD_DPAINT_EFFECT_DO_SPREAD
@ MOD_DPAINT_EFFECT_DO_SHRINK
@ MOD_DPAINT_WAVE_OPEN_BORDERS
@ MOD_DPAINT_DISP_INCREMENTAL
@ MOD_DPAINT_DISSOLVE_LOG
@ MOD_DPAINT_WAVEB_REFLECT
@ MOD_DPAINT_WAVEB_CHANGE
@ MOD_DPAINT_RAY_BRUSH_AVG
@ MOD_DPAINT_SURFACE_T_WEIGHT
@ MOD_DPAINT_SURFACE_T_PAINT
@ MOD_DPAINT_SURFACE_T_DISPLACE
@ MOD_DPAINT_SURFACE_T_WAVE
@ MOD_DPAINT_IMGFORMAT_OPENEXR
@ MOD_DPAINT_IMGFORMAT_PNG
@ MOD_DPAINT_PRFALL_CONSTANT
@ MOD_DPAINT_PRFALL_SMOOTH
@ MOD_DPAINT_SURFACE_F_VERTEX
@ MOD_DPAINT_SURFACE_F_IMAGESEQ
@ MOD_DPAINT_PROX_PROJECT
@ MOD_DPAINT_INVERSE_PROX
@ MOD_DPAINT_VELOCITY_ALPHA
@ MOD_DPAINT_VELOCITY_DEPTH
@ MOD_DPAINT_VELOCITY_COLOR
@ MOD_DPAINT_NEGATE_VOLUME
@ MOD_DYNAMICPAINT_TYPE_BRUSH
@ MOD_DYNAMICPAINT_TYPE_CANVAS
Object is a sort of wrapper for general info.
StructRNA RNA_DynamicPaintSurface
return(oflags[bm->toolflag_index].f &oflag) !=0
struct @203::@204 surface
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, void *ptr, int itemsize, int length, bool free_ptr, IteratorSkipFunc skip)
PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *data)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
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_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
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)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_struct_name_property(struct StructRNA *srna, struct PropertyRNA *prop)
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)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
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)
static void rna_def_canvas_surfaces(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_dynamic_paint(BlenderRNA *brna)
static void rna_def_canvas_surface(BlenderRNA *brna)
static void rna_def_dynamic_paint_brush_settings(BlenderRNA *brna)
static void rna_def_dynamic_paint_canvas_settings(BlenderRNA *brna)
const EnumPropertyItem rna_enum_prop_dynamicpaint_type_items[]
void rna_object_uvlayer_name_set(struct PointerRNA *ptr, const char *value, char *result, int maxlen)
struct DynamicPaintModifierData * pmd
struct DynamicPaintModifierData * pmd