Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_interpolate.c
| Show First 20 Lines • Show All 1,477 Lines • ▼ Show 20 Lines | void GPENCIL_OT_interpolate_sequence(wmOperatorType *ot) | ||||
| }; | }; | ||||
| /** | /** | ||||
| * \note this is a near exact duplicate of #rna_enum_beztriple_interpolation_mode_items, | * \note this is a near exact duplicate of #rna_enum_beztriple_interpolation_mode_items, | ||||
| * Changes here will likely apply there too. | * Changes here will likely apply there too. | ||||
| */ | */ | ||||
| static const EnumPropertyItem gpencil_interpolation_type_items[] = { | static const EnumPropertyItem gpencil_interpolation_type_items[] = { | ||||
| /* Interpolation. */ | /* Interpolation. */ | ||||
| RNA_ENUM_ITEM_HEADING(N_("Interpolation"), "Standard transitions between keyframes"), | RNA_ENUM_ITEM_HEADING(CTX_N_(BLT_I18NCONTEXT_ID_GPENCIL, "Interpolation"), | ||||
| "Standard transitions between keyframes"), | |||||
| {GP_IPO_LINEAR, | {GP_IPO_LINEAR, | ||||
| "LINEAR", | "LINEAR", | ||||
| ICON_IPO_LINEAR, | ICON_IPO_LINEAR, | ||||
| "Linear", | "Linear", | ||||
| "Straight-line interpolation between A and B (i.e. no ease in/out)"}, | "Straight-line interpolation between A and B (i.e. no ease in/out)"}, | ||||
| {GP_IPO_CURVEMAP, | {GP_IPO_CURVEMAP, | ||||
| "CUSTOM", | "CUSTOM", | ||||
| ICON_IPO_BEZIER, | ICON_IPO_BEZIER, | ||||
| "Custom", | "Custom", | ||||
| "Custom interpolation defined using a curve map"}, | "Custom interpolation defined using a curve map"}, | ||||
| /* Easing. */ | /* Easing. */ | ||||
| RNA_ENUM_ITEM_HEADING(N_("Easing (by strength)"), | RNA_ENUM_ITEM_HEADING(CTX_N_(BLT_I18NCONTEXT_ID_GPENCIL, | ||||
| "Easing (by strength)"), | |||||
| "Predefined inertial transitions, useful for motion graphics " | "Predefined inertial transitions, useful for motion graphics " | ||||
| "(from least to most \"dramatic\")"), | "(from least to most \"dramatic\")"), | ||||
| {GP_IPO_SINE, | {GP_IPO_SINE, | ||||
| "SINE", | "SINE", | ||||
| ICON_IPO_SINE, | ICON_IPO_SINE, | ||||
| "Sinusoidal", | "Sinusoidal", | ||||
| "Sinusoidal easing (weakest, almost linear but with a slight curvature)"}, | "Sinusoidal easing (weakest, almost linear but with a slight curvature)"}, | ||||
| {GP_IPO_QUAD, "QUAD", ICON_IPO_QUAD, "Quadratic", "Quadratic easing"}, | {GP_IPO_QUAD, "QUAD", ICON_IPO_QUAD, "Quadratic", "Quadratic easing"}, | ||||
| {GP_IPO_CUBIC, "CUBIC", ICON_IPO_CUBIC, "Cubic", "Cubic easing"}, | {GP_IPO_CUBIC, "CUBIC", ICON_IPO_CUBIC, "Cubic", "Cubic easing"}, | ||||
| {GP_IPO_QUART, "QUART", ICON_IPO_QUART, "Quartic", "Quartic easing"}, | {GP_IPO_QUART, "QUART", ICON_IPO_QUART, "Quartic", "Quartic easing"}, | ||||
| {GP_IPO_QUINT, "QUINT", ICON_IPO_QUINT, "Quintic", "Quintic easing"}, | {GP_IPO_QUINT, "QUINT", ICON_IPO_QUINT, "Quintic", "Quintic easing"}, | ||||
| {GP_IPO_EXPO, "EXPO", ICON_IPO_EXPO, "Exponential", "Exponential easing (dramatic)"}, | {GP_IPO_EXPO, "EXPO", ICON_IPO_EXPO, "Exponential", "Exponential easing (dramatic)"}, | ||||
| {GP_IPO_CIRC, | {GP_IPO_CIRC, | ||||
| "CIRC", | "CIRC", | ||||
| ICON_IPO_CIRC, | ICON_IPO_CIRC, | ||||
| "Circular", | "Circular", | ||||
| "Circular easing (strongest and most dynamic)"}, | "Circular easing (strongest and most dynamic)"}, | ||||
| RNA_ENUM_ITEM_HEADING(N_("Dynamic Effects"), "Simple physics-inspired easing effects"), | RNA_ENUM_ITEM_HEADING(CTX_N_(BLT_I18NCONTEXT_ID_GPENCIL, "Dynamic Effects"), | ||||
| "Simple physics-inspired easing effects"), | |||||
| {GP_IPO_BACK, "BACK", ICON_IPO_BACK, "Back", "Cubic easing with overshoot and settle"}, | {GP_IPO_BACK, "BACK", ICON_IPO_BACK, "Back", "Cubic easing with overshoot and settle"}, | ||||
| {GP_IPO_BOUNCE, | {GP_IPO_BOUNCE, | ||||
| "BOUNCE", | "BOUNCE", | ||||
| ICON_IPO_BOUNCE, | ICON_IPO_BOUNCE, | ||||
| "Bounce", | "Bounce", | ||||
| "Exponentially decaying parabolic bounce, like when objects collide"}, | "Exponentially decaying parabolic bounce, like when objects collide"}, | ||||
| {GP_IPO_ELASTIC, | {GP_IPO_ELASTIC, | ||||
| "ELASTIC", | "ELASTIC", | ||||
| ▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines | |||||