42 "Copy the location of a target (with an optional offset), so that they move together"},
47 "Copy the rotation of a target (with an optional offset), so that they rotate together"},
52 "Copy the scale factors of a target (with an optional offset), so that they are scaled by "
58 "Copy all the transformations of a target, so that they move together"},
63 "Restrict movements to within a certain distance of a target (at the time of constraint "
69 "Restrict movement along each axis within given ranges"},
74 "Restrict rotation along each axis within given ranges"},
79 "Restrict scaling along each axis with given ranges"},
84 "Compensate for scaling one axis by applying suitable scaling to the other two axes"},
89 "Use one transform property from target to control another (or same) property on owner"},
92 ICON_CON_TRANSFORM_CACHE,
94 "Look up the transformation matrix from an external file"},
101 "Restrict movements to lie along a curve by remapping location along curve's longest axis"},
106 "Point towards a target by performing the smallest rotation necessary"},
110 "Inverse Kinematics",
111 "Control a chain of bones by specifying the endpoint target (Bones only)"},
116 "Rotate around the specified ('locked') axis to point towards a target"},
121 "Align chain of bones along a curve (Bones only)"},
126 "Stretch along Y-Axis to point towards a target"},
131 "Legacy tracking constraint prone to twisting artifacts"},
138 "Use transform property of target to look up pose for owner from an Action"},
143 "Apply weight-blended transformation from multiple bones like the Armature modifier"},
148 "Make target the 'detachable' parent of owner"},
153 "Use position (and optionally rotation) of target to define a 'wall' or 'floor' that the "
154 "owner cannot cross"},
159 "Use to animate an object/bone following a path"},
161 "GEOMETRY_ATTRIBUTE",
162 ICON_CON_GEOMETRYATTRIBUTE,
163 "Geometry Attribute",
164 "Retrieve transform from target geometry attribute data"},
169 "Change pivot point for transforms (buggy)"},
174 "Restrict movements to surface of target mesh"},
175 {0,
nullptr, 0,
nullptr,
nullptr},
183 "The transformation of the target is evaluated relative to the world "
184 "coordinate system"},
189 "The transformation of the target is evaluated relative to a custom object/bone/vertex "
196 "The transformation of the target is only evaluated in the Pose Space, "
197 "the target armature object transformation is ignored"},
202 "The transformation of the target bone is evaluated relative to its rest pose "
203 "local coordinate system, thus including the parent-induced transformation"},
208 "The transformation of the target is evaluated relative to its local "
209 "coordinate system"},
211 "LOCAL_OWNER_ORIENT",
213 "Local Space (Owner Orientation)",
214 "The transformation of the target bone is evaluated relative to its local coordinate "
215 "system, followed by a correction for the difference in target and owner rest pose "
216 "orientations. When applied as local transform to the owner produces the same global "
217 "motion as the target if the parents are still in rest pose."},
218 {0,
nullptr, 0,
nullptr,
nullptr},
226 "The constraint is applied relative to the world coordinate system"},
231 "The constraint is applied in local space of a custom object/bone/vertex group"},
237 "The constraint is applied in Pose Space, the object transformation is ignored"},
242 "The constraint is applied relative to the rest pose local coordinate system "
243 "of the bone, thus including the parent-induced transformation"},
248 "The constraint is applied relative to the local coordinate system of the object"},
249 {0,
nullptr, 0,
nullptr,
nullptr},
253 {
TRACK_X,
"TRACK_X", 0,
"X",
""},
254 {
TRACK_Y,
"TRACK_Y", 0,
"Y",
""},
255 {
TRACK_Z,
"TRACK_Z", 0,
"Z",
""},
256 {
TRACK_nX,
"TRACK_NEGATIVE_X", 0,
"-X",
""},
257 {
TRACK_nY,
"TRACK_NEGATIVE_Y", 0,
"-Y",
""},
258 {
TRACK_nZ,
"TRACK_NEGATIVE_Z", 0,
"-Z",
""},
259 {0,
nullptr, 0,
nullptr,
nullptr},
270 {0,
nullptr, 0,
nullptr,
nullptr},
277# include <fmt/format.h>
307 "The constraint is applied relative to the world coordinate system"},
312 "The constraint is applied in local space of a custom object/bone/vertex group"},
317 "The constraint is applied relative to the local coordinate system of the object"},
318 {0,
nullptr, 0,
nullptr,
nullptr},
326 "The transformation of the target is evaluated relative to the world coordinate system"},
331 "The transformation of the target is evaluated relative to a custom object/bone/vertex "
337 "The transformation of the target is evaluated relative to its local coordinate system"},
338 {0,
nullptr, 0,
nullptr,
nullptr},
347 return RNA_ChildOfConstraint;
349 return RNA_TrackToConstraint;
351 return RNA_KinematicConstraint;
353 return RNA_FollowPathConstraint;
355 return RNA_CopyRotationConstraint;
357 return RNA_CopyLocationConstraint;
359 return RNA_CopyScaleConstraint;
361 return RNA_MaintainVolumeConstraint;
363 return RNA_ArmatureConstraint;
365 return RNA_ActionConstraint;
367 return RNA_LockedTrackConstraint;
369 return RNA_StretchToConstraint;
371 return RNA_FloorConstraint;
373 return RNA_ClampToConstraint;
375 return RNA_TransformConstraint;
377 return RNA_LimitRotationConstraint;
379 return RNA_LimitLocationConstraint;
381 return RNA_LimitScaleConstraint;
383 return RNA_LimitDistanceConstraint;
385 return RNA_ShrinkwrapConstraint;
387 return RNA_DampedTrackConstraint;
389 return RNA_SplineIKConstraint;
391 return RNA_CopyTransformsConstraint;
393 return RNA_PivotConstraint;
395 return RNA_FollowTrackConstraint;
397 return RNA_CameraSolverConstraint;
399 return RNA_ObjectSolverConstraint;
401 return RNA_TransformCacheConstraint;
403 return RNA_GeometryAttributeConstraint;
405 return RNA_UnknownType;
409static void rna_ConstraintTargetBone_target_set(
PointerRNA *ptr,
422static void rna_Constraint_name_set(
PointerRNA *ptr,
const char *value)
425 char oldname[
sizeof(con->name)];
435 Object *ob = id_cast<Object *>(ptr->owner_id);
453static std::optional<std::string> rna_Constraint_do_compute_path(
Object *ob,
bConstraint *con)
459 printf(
"%s: internal error, constraint '%s' not found in object '%s'\n",
466 char name_esc_pchan[
sizeof(pchan->name) * 2];
467 char name_esc_const[
sizeof(con->name) * 2];
468 BLI_str_escape(name_esc_pchan, pchan->name,
sizeof(name_esc_pchan));
469 BLI_str_escape(name_esc_const, con->name,
sizeof(name_esc_const));
470 return fmt::format(
"pose.bones[\"{}\"].constraints[\"{}\"]", name_esc_pchan, name_esc_const);
472 char name_esc_const[
sizeof(con->name) * 2];
473 BLI_str_escape(name_esc_const, con->name,
sizeof(name_esc_const));
474 return fmt::format(
"constraints[\"{}\"]", name_esc_const);
477static std::optional<std::string> rna_Constraint_path(
const PointerRNA *ptr)
479 Object *ob = id_cast<Object *>(ptr->owner_id);
482 return rna_Constraint_do_compute_path(ob, con);
487 Object *ob = id_cast<Object *>(ptr->owner_id);
493static std::optional<std::string> rna_ConstraintTarget_path(
const PointerRNA *ptr)
495 Object *ob = id_cast<Object *>(ptr->owner_id);
497 bConstraint *con = rna_constraint_from_target(ptr);
500 if (con !=
nullptr) {
509 "{}.targets[{}]", rna_Constraint_do_compute_path(ob, con).value_or(
""),
index);
511 printf(
"%s: internal error, constraint '%s' of object '%s' does not contain the target\n",
522 bmain, id_cast<Object *>(ptr->owner_id),
static_cast<bConstraint *
>(ptr->data));
528 bmain, id_cast<Object *>(ptr->owner_id),
static_cast<bConstraint *
>(ptr->data));
534 bmain, id_cast<Object *>(ptr->owner_id), rna_constraint_from_target(ptr));
540 bmain, id_cast<Object *>(ptr->owner_id), rna_constraint_from_target(ptr));
544static void rna_Constraint_childof_inverse_matrix_update(
Main *bmain,
551 rna_Constraint_update(bmain, scene, ptr);
554static void rna_Constraint_ik_type_set(
PointerRNA *ptr,
int value)
559 if (ikdata->type != value) {
573static bool rna_Constraint_RotLike_use_offset_get(
PointerRNA *ptr)
580static void rna_Constraint_RotLike_use_offset_set(
PointerRNA *ptr,
bool value)
585 if (curval != value) {
595 Object *ob = id_cast<Object *>(ptr->owner_id);
603 return owner_space_object_items;
613 ListBaseT<bConstraintTarget> targets = {
nullptr,
nullptr};
617 for (ct = targets.first(); ct; ct = ct->next) {
630 return target_space_object_items;
645static void rna_ArmatureConstraint_target_remove(
661static void rna_ArmatureConstraint_target_clear(
ID *
id,
bConstraint *con,
Main *bmain)
665 acon->
targets.free_no_destruct();
670static void rna_ActionConstraint_mix_mode_set(
PointerRNA *ptr,
int value)
687static void rna_ActionConstraint_minmax_range(
694 if (
ELEM(acon->type, 0, 1, 2)) {
710 ID &animated_id = *ptr->owner_id;
718 animated_id,
nullptr, acon->act, acon->action_slot_handle, acon->last_slot_identifier);
719 BLI_assert_msg(ok,
"Un-assigning an Action from an Action Constraint should always work.");
725 animated_id, action, acon->act, acon->action_slot_handle, acon->last_slot_identifier);
729 "Could not assign action %s to Action Constraint %s",
754 if (acon->action_slot_handle ==
Slot::unassigned && action->slots().size() == 1) {
755 Slot *first_slot = action->slot(0);
756 if (first_slot->is_suitable_for(animated_id)) {
761 acon->action_slot_handle,
762 acon->last_slot_identifier);
769static void rna_ActionConstraint_action_slot_handle_set(
775 rna_generic_action_slot_handle_set(new_slot_handle,
778 acon->action_slot_handle,
779 acon->last_slot_identifier);
787static void rna_ActionConstraint_action_slot_handle_override_diff(
796 rna_generic_action_slot_handle_override_diff(bmain, rnadiff_ctx, act_con_a->act, act_con_b->act);
804 return rna_generic_action_slot_get(acon->act, acon->action_slot_handle);
807static void rna_ActionConstraint_action_slot_set(
PointerRNA *ptr,
814 rna_generic_action_slot_set(value,
817 acon->action_slot_handle,
818 acon->last_slot_identifier,
822static void rna_iterator_ActionConstraint_action_suitable_slots_begin(
828 rna_iterator_generic_action_suitable_slots_begin(iter, ptr, acon->act);
831static int rna_SplineIKConstraint_joint_bindings_get_length(
const PointerRNA *ptr,
838 length[0] = ikData->numpoints;
847static void rna_SplineIKConstraint_joint_bindings_get(
PointerRNA *ptr,
float *values)
852 memcpy(values, ikData->points, ikData->numpoints *
sizeof(
float));
855static void rna_SplineIKConstraint_joint_bindings_set(
PointerRNA *ptr,
const float *values)
860 memcpy(ikData->points, values, ikData->numpoints *
sizeof(
float));
863static int rna_ShrinkwrapConstraint_face_cull_get(
PointerRNA *ptr)
870static void rna_ShrinkwrapConstraint_face_cull_set(
PointerRNA *ptr,
int value)
882 if (ob->
type ==
OB_CAMERA && ob != id_cast<Object *>(ptr->owner_id)) {
890static void rna_Constraint_followTrack_camera_set(
PointerRNA *ptr,
899 if (ob->
type ==
OB_CAMERA && ob != id_cast<Object *>(ptr->owner_id)) {
905 data->camera =
nullptr;
909static void rna_Constraint_followTrack_depthObject_set(
PointerRNA *ptr,
918 if (ob->
type ==
OB_MESH && ob != id_cast<Object *>(ptr->owner_id)) {
924 data->depth_ob =
nullptr;
933 if (ob->
type ==
OB_MESH && ob != id_cast<Object *>(ptr->owner_id)) {
941static void rna_Constraint_objectSolver_camera_set(
PointerRNA *ptr,
950 if (ob->
type ==
OB_CAMERA && ob != id_cast<Object *>(ptr->owner_id)) {
956 data->camera =
nullptr;
971 "The object is constrained inside a virtual sphere around the target object, "
972 "with a radius defined by the limit distance"},
977 "The object is constrained outside a virtual sphere around the target object, "
978 "with a radius defined by the limit distance"},
980 "LIMITDIST_ONSURFACE",
983 "The object is constrained on the surface of a virtual sphere around the target object, "
984 "with a radius defined by the limit distance"},
985 {0,
nullptr, 0,
nullptr,
nullptr},
1003 "Follow shape of B-Bone segments when calculating Head/Tail position");
1066 srna,
"Constraint Target Bone",
"Target bone for multi-target constraints");
1076 prop,
nullptr,
"rna_ConstraintTargetBone_target_set",
nullptr,
"rna_Armature_object_poll");
1103 srna,
"Child Of Constraint",
"Create constraint-based parent-child relationship");
1159 prop,
"Set Inverse Pending",
"Set to true to request recalculation of the inverse matrix");
1180 srna =
RNA_def_struct(brna,
"ArmatureConstraintTargets",
nullptr);
1183 srna,
"Armature Deform Constraint Targets",
"Collection of target bones and weights");
1189 parm =
RNA_def_pointer(func,
"target",
"ConstraintTargetBone",
"",
"New target bone");
1193 func =
RNA_def_function(srna,
"remove",
"rna_ArmatureConstraint_target_remove");
1196 parm =
RNA_def_pointer(func,
"target",
"ConstraintTargetBone",
"",
"Target to remove");
1200 func =
RNA_def_function(srna,
"clear",
"rna_ArmatureConstraint_target_clear");
1212 srna,
"Armature Constraint",
"Applies transformations done by the Armature modifier");
1227 prop,
"Preserve Volume",
"Deform rotation interpolation with quaternions");
1235 "Multiply weights by envelope for all bones, instead of acting like Vertex Group based "
1237 "The specified weights are still used, and only the listed bones are considered.");
1243 "Use Current Location",
1244 "Use the current bone location for envelopes and choosing B-Bone "
1245 "segments instead of rest position");
1257 {0,
"BONE", 0,
"Bone",
""},
1259 {0,
nullptr, 0,
nullptr,
nullptr},
1265 {0,
nullptr, 0,
nullptr,
nullptr},
1268 srna =
RNA_def_struct(brna,
"KinematicConstraint",
"Constraint");
1305 prop,
"Weight",
"For Tree-IK: Weight of position control for this target");
1312 prop,
"Orientation Weight",
"For Tree-IK: Weight of orientation control for this target");
1322 prop,
"Chain Length",
"How many bones are included in the IK effect - 0 uses all bones");
1335 prop,
"Axis Reference",
"Constraint axis Lock options relative to Bone or Target reference");
1396 prop,
"Limit Mode",
"Distances in relation to sphere of influence to allow");
1414 {
TRACK_X,
"UP_X", 0,
"X",
""},
1415 {
TRACK_Y,
"UP_Y", 0,
"Y",
""},
1416 {
TRACK_Z,
"UP_Z", 0,
"Z",
""},
1417 {0,
nullptr, 0,
nullptr,
nullptr},
1422 srna,
"Track To Constraint",
"Aim the constrained object toward the target");
1450 prop,
"Target Z",
"Target's Z axis, not World Z axis, will constrain the Up direction");
1461 srna =
RNA_def_struct(brna,
"CopyLocationConstraint",
"Constraint");
1520 {
ROTLIKE_MIX_REPLACE,
"REPLACE", 0,
"Replace",
"Replace the original rotation with copied"},
1521 {
ROTLIKE_MIX_ADD,
"ADD", 0,
"Add",
"Add euler component values together"},
1526 "Apply copied rotation before original, as if the constraint target is a parent"},
1531 "Apply copied rotation after original, as if the constraint target is a child"},
1536 "Combine rotations like the original Offset checkbox. Does not work well for "
1537 "multiple axis rotations."},
1538 {0,
nullptr, 0,
nullptr,
nullptr},
1541 srna =
RNA_def_struct(brna,
"CopyRotationConstraint",
"Constraint");
1593 prop,
"Mix Mode",
"Specify how the copied and existing rotations are combined");
1599 prop,
"rna_Constraint_RotLike_use_offset_get",
"rna_Constraint_RotLike_use_offset_set");
1601 prop,
"Offset",
"DEPRECATED: Add original rotation into copied rotation");
1612 srna =
RNA_def_struct(brna,
"CopyScaleConstraint",
"Constraint");
1651 "Redistribute the copied change in volume equally "
1652 "between the three axes of the owner");
1665 "Use addition instead of multiplication to combine scale (2.7 compatibility)");
1681 {0,
nullptr, 0,
nullptr,
nullptr},
1689 "Volume is strictly preserved, overriding the scaling of non-free axes"},
1694 "Volume is preserved when the object is scaled uniformly. "
1695 "Deviations from uniform scale on non-free axes are passed through."},
1700 "Volume is preserved when the object is scaled only on the free axis. "
1701 "Non-free axis scaling is passed through."},
1702 {0,
nullptr, 0,
nullptr,
nullptr},
1705 srna =
RNA_def_struct(brna,
"MaintainVolumeConstraint",
"Constraint");
1707 "Maintain Volume Constraint",
1708 "Maintain a constant volume along a single scaling axis");
1725 prop,
"Mode",
"The way the constraint treats original non-free axis scaling");
1748 "Replace the original transformation with copied"},
1753 "Before Original (Full)",
1754 "Apply copied transformation before original, using simple matrix multiplication as if "
1755 "the constraint target is a parent in Full Inherit Scale mode. "
1756 "Will create shear when combining rotation and non-uniform scale."},
1760 "Before Original (Aligned)",
1761 "Apply copied transformation before original, as if the constraint target is a parent in "
1762 "Aligned Inherit Scale mode. This effectively uses Full for location and Split Channels "
1763 "for rotation and scale."},
1767 "Before Original (Split Channels)",
1768 "Apply copied transformation before original, handling location, rotation and scale "
1769 "separately, similar to a sequence of three Copy constraints"},
1774 "After Original (Full)",
1775 "Apply copied transformation after original, using simple matrix multiplication as if "
1776 "the constraint target is a child in Full Inherit Scale mode. "
1777 "Will create shear when combining rotation and non-uniform scale."},
1781 "After Original (Aligned)",
1782 "Apply copied transformation after original, as if the constraint target is a child in "
1783 "Aligned Inherit Scale mode. This effectively uses Full for location and Split Channels "
1784 "for rotation and scale."},
1788 "After Original (Split Channels)",
1789 "Apply copied transformation after original, handling location, rotation and scale "
1790 "separately, similar to a sequence of three Copy constraints"},
1791 {0,
nullptr, 0,
nullptr,
nullptr},
1794 srna =
RNA_def_struct(brna,
"CopyTransformsConstraint",
"Constraint");
1796 srna,
"Copy Transforms Constraint",
"Copy all the transforms of the target");
1811 prop,
"Remove Target Shear",
"Remove shear from the target transformation before combining");
1818 prop,
"Mix Mode",
"Specify how the copied and existing transformations are combined");
1830 {
TRACK_X,
"FLOOR_X", 0,
"X",
""},
1831 {
TRACK_Y,
"FLOOR_Y", 0,
"Y",
""},
1832 {
TRACK_Z,
"FLOOR_Z", 0,
"Z",
""},
1833 {
TRACK_nX,
"FLOOR_NEGATIVE_X", 0,
"-X",
""},
1834 {
TRACK_nY,
"FLOOR_NEGATIVE_Y", 0,
"-Y",
""},
1835 {
TRACK_nZ,
"FLOOR_NEGATIVE_Z", 0,
"-Z",
""},
1836 {0,
nullptr, 0,
nullptr,
nullptr},
1841 srna,
"Floor Constraint",
"Use the target object for location limitation");
1854 prop,
"Floor Location",
"Location of target that object will not pass through");
1876 {20,
"LOCATION_X", 0,
"X Location",
""},
1877 {21,
"LOCATION_Y", 0,
"Y Location",
""},
1878 {22,
"LOCATION_Z", 0,
"Z Location",
""},
1879 {00,
"ROTATION_X", 0,
"X Rotation",
""},
1880 {01,
"ROTATION_Y", 0,
"Y Rotation",
""},
1881 {02,
"ROTATION_Z", 0,
"Z Rotation",
""},
1882 {10,
"SCALE_X", 0,
"X Scale",
""},
1883 {11,
"SCALE_Y", 0,
"Y Scale",
""},
1884 {12,
"SCALE_Z", 0,
"Z Scale",
""},
1885 {0,
nullptr, 0,
nullptr,
nullptr},
1893 "Replace the original transformation with the action channels"},
1898 "Before Original (Full)",
1899 "Apply the action channels before the original transformation, as if applied to an "
1900 "imaginary parent in Full Inherit Scale mode. Will create shear when combining rotation "
1901 "and non-uniform scale."},
1905 "Before Original (Aligned)",
1906 "Apply the action channels before the original transformation, as if applied to an "
1907 "imaginary parent in Aligned Inherit Scale mode. This effectively uses Full for location "
1908 "and Split Channels for rotation and scale."},
1912 "Before Original (Split Channels)",
1913 "Apply the action channels before the original transformation, handling location, rotation "
1914 "and scale separately"},
1919 "After Original (Full)",
1920 "Apply the action channels after the original transformation, as if applied to an "
1921 "imaginary child in Full Inherit Scale mode. Will create shear when combining rotation "
1922 "and non-uniform scale."},
1926 "After Original (Aligned)",
1927 "Apply the action channels after the original transformation, as if applied to an "
1928 "imaginary child in Aligned Inherit Scale mode. This effectively uses Full for location "
1929 "and Split Channels for rotation and scale."},
1933 "After Original (Split Channels)",
1934 "Apply the action channels after the original transformation, handling location, rotation "
1935 "and scale separately"},
1936 {0,
nullptr, 0,
nullptr,
nullptr},
1941 srna,
"Action Constraint",
"Map an action to the transform axes of a bone");
1956 "Specify how existing transformations and the action channels are combined");
1965 "Transform Channel",
1966 "Transformation channel from the target that is used to key the Action");
1972 prop,
nullptr,
"rna_ActionConstraint_action_set",
nullptr,
"rna_Action_id_poll");
1983 prop,
nullptr,
"rna_ActionConstraint_action_slot_handle_set",
nullptr);
1985 "Action Slot Handle",
1986 "A number that identifies which sub-set of the Action is considered "
1987 "to be for this Action Constraint");
1990 prop,
"rna_ActionConstraint_action_slot_handle_override_diff",
nullptr,
nullptr);
1997 "Last Action Slot Identifier",
1998 "The identifier of the most recently assigned action slot. The slot identifies which "
1999 "sub-set of the Action is considered to be for this constraint, and its identifier is used "
2000 "to find the right slot when assigning an Action.");
2009 "The slot identifies which sub-set of the Action is considered to be for this "
2010 "strip, and its name is used to find the right slot when assigning another Action");
2012 "rna_ActionConstraint_action_slot_get",
2013 "rna_ActionConstraint_action_slot_set",
2031 "rna_iterator_ActionConstraint_action_suitable_slots_begin",
2032 "rna_iterator_array_next",
2033 "rna_iterator_array_end",
2034 "rna_iterator_array_dereference_get",
2040 prop,
"Action Slots",
"The list of action slots suitable for this NLA strip");
2046 "Bones only: apply the object's transformation channels of the action "
2047 "to the constrained bone, instead of bone's channels");
2080 prop,
"Evaluation Time",
"Interpolates between Action Start and End frames");
2086 "Use Evaluation Time",
2087 "Interpolate between Action Start and End frames, with the Evaluation "
2088 "Time slider instead of the Target object/bone");
2100 {
TRACK_X,
"LOCK_X", 0,
"X",
""},
2101 {
TRACK_Y,
"LOCK_Y", 0,
"Y",
""},
2102 {
TRACK_Z,
"LOCK_Z", 0,
"Z",
""},
2103 {0,
nullptr, 0,
nullptr,
nullptr},
2106 srna =
RNA_def_struct(brna,
"LockedTrackConstraint",
"Constraint");
2109 "Locked Track Constraint",
2110 "Point toward the target along the track axis, while locking the other axis");
2144 {
TRACK_X,
"FORWARD_X", 0,
"X",
""},
2145 {
TRACK_Y,
"FORWARD_Y", 0,
"Y",
""},
2146 {
TRACK_Z,
"FORWARD_Z", 0,
"Z",
""},
2147 {
TRACK_nX,
"TRACK_NEGATIVE_X", 0,
"-X",
""},
2148 {
TRACK_nY,
"TRACK_NEGATIVE_Y", 0,
"-Y",
""},
2149 {
TRACK_nZ,
"TRACK_NEGATIVE_Z", 0,
"-Z",
""},
2150 {0,
nullptr, 0,
nullptr,
nullptr},
2154 {
TRACK_X,
"UP_X", 0,
"X",
""},
2155 {
TRACK_Y,
"UP_Y", 0,
"Y",
""},
2156 {
TRACK_Z,
"UP_Z", 0,
"Z",
""},
2157 {0,
nullptr, 0,
nullptr,
nullptr},
2160 srna =
RNA_def_struct(brna,
"FollowPathConstraint",
"Constraint");
2177 prop,
"Offset",
"Offset from the position corresponding to the time frame");
2185 prop,
"Offset Factor",
"Percentage value defining target position along length of curve");
2205 prop,
"Follow Curve",
"Object will follow the heading and banking of the curve");
2213 "Object will stay locked to a single point somewhere along the length of the curve "
2214 "regardless of time");
2232 {
VOLUME_X,
"VOLUME_X", 0,
"X",
""},
2233 {
VOLUME_Z,
"VOLUME_Z", 0,
"Z",
""},
2234 {
NO_VOLUME,
"NO_VOLUME", 0,
"None",
""},
2235 {0,
nullptr, 0,
nullptr,
nullptr},
2239 {
PLANE_X,
"PLANE_X", 0,
"XZ",
"Rotate around local X, then Z"},
2240 {
PLANE_Z,
"PLANE_Z", 0,
"ZX",
"Rotate around local Z, then X"},
2245 "Use the smallest single axis rotation, similar to Damped Track"},
2246 {0,
nullptr, 0,
nullptr,
nullptr},
2249 srna =
RNA_def_struct(brna,
"StretchToConstraint",
"Constraint");
2265 prop,
"Maintain Volume",
"Maintain the object's volume as it stretches");
2286 prop,
"Volume Variation",
"Factor between volume variation and stretching");
2292 prop,
"Use Volume Variation Minimum",
"Use lower limit for volume variation");
2298 prop,
"Use Volume Variation Maximum",
"Use upper limit for volume variation");
2316 prop,
"Volume Variation Smoothness",
"Strength of volume stretching clamping");
2332 {0,
nullptr, 0,
nullptr,
nullptr},
2338 "Clamp To Constraint",
2339 "Constrain an object's location to the nearest point along the target path");
2361 prop,
"Cyclic",
"Treat curve as cyclic curve (no clamping to curve bounding box)");
2376 {0,
nullptr, 0,
nullptr,
nullptr},
2382 {0,
nullptr, 0,
nullptr,
nullptr},
2392 "Apply new rotation before original, as if it was on a parent"},
2397 "Apply new rotation after original, as if it was on a child"},
2398 {0,
nullptr, 0,
nullptr,
nullptr},
2404 {0,
nullptr, 0,
nullptr,
nullptr},
2407 srna =
RNA_def_struct(brna,
"TransformConstraint",
"Constraint");
2409 srna,
"Transformation Constraint",
"Map transformations of the target to the object");
2427 prop,
"Map To",
"The transformation type to affect on the constrained object");
2434 prop,
"Map To X From",
"The source axis constrained object's X axis uses");
2442 prop,
"Map To Y From",
"The source axis constrained object's Y axis uses");
2450 prop,
"Map To Z From",
"The source axis constrained object's Z axis uses");
2547 prop,
"Location Mix Mode",
"Specify how to combine the new location with original");
2639 prop,
"Rotation Mix Mode",
"Specify how to combine the new rotation with original");
2731 prop,
"Scale Mix Mode",
"Specify how to combine the new scale with original");
2742 srna =
RNA_def_struct(brna,
"LimitLocationConstraint",
"Constraint");
2744 srna,
"Limit Location Constraint",
"Limit the location of the constrained object");
2819 prop,
"Affect Transform",
"Transform tools are affected by this constraint as well");
2830 srna =
RNA_def_struct(brna,
"LimitRotationConstraint",
"Constraint");
2832 srna,
"Limit Rotation Constraint",
"Limit the rotation of the constrained object");
2904 prop,
"Affect Transform",
"Transform tools are affected by this constraint as well");
2912 "Use the old semi-broken behavior that does not understand that rotations loop around");
2923 srna =
RNA_def_struct(brna,
"LimitScaleConstraint",
"Constraint");
2925 srna,
"Limit Size Constraint",
"Limit the scaling of the constrained object");
3000 prop,
"Affect Transform",
"Transform tools are affected by this constraint as well");
3011 srna =
RNA_def_struct(brna,
"LimitDistanceConstraint",
"Constraint");
3013 srna,
"Limit Distance Constraint",
"Limit the distance from target object");
3034 prop,
"Limit Mode",
"Distances in relation to sphere of influence to allow");
3040 prop,
"Affect Transform",
"Transforms are affected by this constraint as well");
3055 "Nearest Surface Point",
3056 "Shrink the location to the nearest target surface"},
3061 "Shrink the location to the nearest target surface along a given axis"},
3066 "Shrink the location to the nearest target vertex"},
3070 "Target Normal Project",
3071 "Shrink the location to the nearest target surface "
3072 "along the interpolated vertex normals of the target"},
3073 {0,
nullptr, 0,
nullptr,
nullptr},
3077 {0,
"OFF", 0,
"Off",
"No culling"},
3082 "No projection when in front of the face"},
3087 "No projection when behind the face"},
3088 {0,
nullptr, 0,
nullptr,
nullptr},
3091 srna =
RNA_def_struct(brna,
"ShrinkwrapConstraint",
"Constraint");
3093 srna,
"Shrinkwrap Constraint",
"Create constraint-based shrinkwrap relationship");
3110 prop,
"Shrinkwrap Type",
"Select type of shrinkwrap algorithm for target position");
3117 prop,
"Snap Mode",
"Select how to constrain the object to the target surface");
3146 prop,
"Project Distance",
"Limit the distance used for projection (zero disables)");
3152 prop,
"Project Opposite",
"Project in both specified and opposite directions");
3159 "rna_ShrinkwrapConstraint_face_cull_get",
3160 "rna_ShrinkwrapConstraint_face_cull_set",
3165 "Stop vertices from projecting to a face on the target when facing towards/away");
3171 prop,
"Invert Cull",
"When projecting in the opposite direction invert the face cull mode");
3177 prop,
"Align Axis To Normal",
"Align the specified axis to the surface normal");
3194 srna =
RNA_def_struct(brna,
"DampedTrackConstraint",
"Constraint");
3196 srna,
"Damped Track Constraint",
"Point toward target by taking the shortest rotation path");
3228 "Use the original scaling of the bones"},
3233 "Scale of the X and Z axes is the inverse of the Y-Scale"},
3237 "Volume Preservation",
3238 "Scale of the X and Z axes are adjusted to preserve the volume of the bones"},
3239 {0,
nullptr, 0,
nullptr,
nullptr},
3248 "Scale the bones to fit the entire length of the curve"},
3253 "Use the original Y scale of the bone"},
3254 {0,
nullptr, 0,
nullptr,
nullptr},
3290 "rna_SplineIKConstraint_joint_bindings_get",
3291 "rna_SplineIKConstraint_joint_bindings_set",
3296 "(EXPERIENCED USERS ONLY) The relative positions of the joints along the chain, "
3304 prop,
"Chain Offset",
"Offset the entire chain relative to the root joint");
3311 "Ignore the relative lengths of the bones when fitting to the curve");
3319 "Average radius of the endpoints is used to tweak the X and Z Scaling of the bones, "
3320 "on top of XZ Scale mode");
3330 "Method used for determining the scaling of the X and Z axes of the bones");
3340 "Method used for determining the scaling of the Y axis of the bones, "
3341 "on top of the shape and scaling of the curve itself");
3349 prop,
"Use Original Scale",
"Apply volume preservation over the original scaling");
3357 prop,
"Volume Variation",
"Factor between volume variation and stretching");
3363 prop,
"Use Volume Variation Minimum",
"Use lower limit for volume variation");
3369 prop,
"Use Volume Variation Maximum",
"Use upper limit for volume variation");
3386 prop,
"Volume Variation Smoothness",
"Strength of volume stretching clamping");
3398 {
PIVOTCON_AXIS_NONE,
"ALWAYS_ACTIVE", 0,
"Always",
"Use the pivot point in every rotation"},
3403 "Use the pivot point in the negative rotation range around the X-axis"},
3408 "Use the pivot point in the negative rotation range around the Y-axis"},
3413 "Use the pivot point in the negative rotation range around the Z-axis"},
3418 "Use the pivot point in the positive rotation range around the X-axis"},
3423 "Use the pivot point in the positive rotation range around the Y-axis"},
3428 "Use the pivot point in the positive rotation range around the Z-axis"},
3429 {0,
nullptr, 0,
nullptr,
nullptr},
3447 prop,
"Target",
"Target Object, defining the position of the pivot when defined");
3461 "Use Relative Offset",
3462 "Offset will be an absolute point in space instead of relative to the target");
3469 "Offset of pivot from target (when set), or from owner's location "
3470 "(when Fixed Position is off), or the absolute pivot point");
3479 prop,
"Enabled Rotation Range",
"Rotation range on which pivoting should occur");
3494 {0,
nullptr, 0,
nullptr,
nullptr},
3497 srna =
RNA_def_struct(brna,
"FollowTrackConstraint",
"Constraint");
3499 srna,
"Follow Track Constraint",
"Lock motion to the target motion track");
3536 prop,
"Object",
"Movie tracking object to follow (if empty, camera object is used)");
3543 prop,
"Camera",
"Camera to which motion is parented (if empty active scene camera is used)");
3548 "rna_Constraint_followTrack_camera_set",
3550 "rna_Constraint_cameraObject_poll");
3558 "Object used to define depth in camera space by projecting onto surface of this object");
3563 "rna_Constraint_followTrack_depthObject_set",
3565 "rna_Constraint_followTrack_depthObject_poll");
3588 srna =
RNA_def_struct(brna,
"CameraSolverConstraint",
"Constraint");
3590 srna,
"Camera Solver Constraint",
"Lock motion to the reconstructed camera movement");
3618 srna =
RNA_def_struct(brna,
"ObjectSolverConstraint",
"Constraint");
3620 srna,
"Object Solver Constraint",
"Lock motion to the reconstructed object movement");
3643 prop,
"Set Inverse Pending",
"Set to true to request recalculation of the inverse matrix");
3656 prop,
"Camera",
"Camera to which motion is parented (if empty active scene camera is used)");
3661 "rna_Constraint_objectSolver_camera_set",
3663 "rna_Constraint_cameraObject_poll");
3673 srna =
RNA_def_struct(brna,
"TransformCacheConstraint",
"Constraint");
3675 srna,
"Transform Cache Constraint",
"Look up transformation from an external file");
3692 "Path to the object in the Alembic archive used to lookup the transform matrix");
3710 {0,
nullptr, 0,
nullptr,
nullptr},
3719 "Quaternion data type, affects rotation"},
3724 "4x4 Matrix data type, affects transform"},
3725 {0,
nullptr, 0,
nullptr,
nullptr},
3733 "Replace the original transformation with the transform from the attribute"},
3738 "Before Original (Full)",
3739 "Apply copied transformation before original, using simple matrix multiplication as if "
3740 "the constraint target is a parent in Full Inherit Scale mode. "
3741 "Will create shear when combining rotation and non-uniform scale."},
3745 "Before Original (Split Channels)",
3746 "Apply copied transformation before original, handling location, rotation and scale "
3747 "separately, similar to a sequence of three Copy constraints"},
3752 "After Original (Full)",
3753 "Apply copied transformation after original, using simple matrix multiplication as if "
3754 "the constraint target is a child in Full Inherit Scale mode. "
3755 "Will create shear when combining rotation and non-uniform scale."},
3759 "After Original (Split Channels)",
3760 "Apply copied transformation after original, handling location, rotation and scale "
3761 "separately, similar to a sequence of three Copy constraints"},
3762 {0,
nullptr, 0,
nullptr,
nullptr},
3765 srna =
RNA_def_struct(brna,
"GeometryAttributeConstraint",
"Constraint");
3767 "Geometry Attribute Constraint",
3768 "Create a constraint-based relationship with an attribute from geometry");
3784 prop,
"Attribute Name",
"Name of the attribute to retrieve the transform from");
3799 "Apply the target object's world transform on top of the attribute's transform");
3833 prop,
"Mix Mode",
"Specify how the copied and existing transformations are combined");
3849 srna,
"Constraint",
"Constraint modifying the transformation of objects and bones");
3872 "Override Constraint",
3873 "In a local override object, whether this constraint comes from the "
3874 "linked reference object, or is local to the override");
3942 prop,
"Influence",
"Amount of influence constraint will have on the final solution");
3952 "Amount of residual error in Blender space unit for constraints that work on position");
3960 "Amount of residual error in radians for constraints that work on orientation");
Functions and classes to work with Actions.
Blender kernel action and pose functionality.
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_CONSTRAINT
#define BLT_I18NCONTEXT_ID_MOVIECLIP
#define CON_SHRINKWRAP_PROJECT_CULL_MASK
#define RNA_MAX_ARRAY_DIMENSION
#define RNA_ENUM_ITEM_SEPR
#define RNA_TRANSLATION_PREC_DEFAULT
#define RNA_ENUM_ITEM_HEADING(name, description)
#define UNUSED_VARS_NDEBUG(...)
#define BLI_assert_msg(a, msg)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
static constexpr slot_handle_t unassigned
decltype(blender::ActionSlot::handle) slot_handle_t
bool generic_assign_action(ID &animated_id, bAction *action_to_assign, bAction *&action_ptr_ref, slot_handle_t &slot_handle_ref, char *slot_identifier)
ActionSlotAssignmentResult generic_assign_action_slot(Slot *slot_to_assign, ID &animated_id, bAction *&action_ptr_ref, slot_handle_t &slot_handle_ref, char *slot_identifier)
ActionSlotAssignmentResult
void constraint_dependency_tag_update(Main *bmain, Object *ob, bConstraint *con)
ListBaseT< bConstraint > * constraint_list_from_constraint(Object *ob, bConstraint *con, bPoseChannel **r_pchan)
void constraint_tag_update(Main *bmain, Object *ob, bConstraint *con)
@ CONSTRAINT_TAR_CUSTOM_SPACE
static void rna_def_constraint_locked_track(BlenderRNA *brna)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
static void rna_def_constrainttarget_bone(BlenderRNA *brna)
void id_lib_extern(ID *id, bool enforce_fix=false)
static void rna_def_constraint_armature_deform_targets(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_constraint_spline_ik(BlenderRNA *brna)
static void rna_def_constraint_size_limit(BlenderRNA *brna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
char * STRNCPY(char(&dst)[N], const char *src)
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ CON_ATTRIBUTE_4X4MATRIX
@ CON_ATTRIBUTE_QUATERNION
static void rna_def_constraint_same_volume(BlenderRNA *brna)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
static const EnumPropertyItem target_space_pchan_items[]
static void rna_def_constraint_rotation_limit(BlenderRNA *brna)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
@ LIMIT_ROT_LEGACY_BEHAVIOR
const EnumPropertyItem rna_enum_modifier_shrinkwrap_mode_items[]
const EnumPropertyItem rna_enum_constraint_type_items[]
void BKE_constraint_targets_flush(struct bConstraint *con, ListBaseT< bConstraintTarget > *targets, bool no_copy)
static void rna_def_constraint_object_solver(BlenderRNA *brna)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
@ CONSTRAINT_TYPE_FOLLOWTRACK
@ CONSTRAINT_TYPE_KINEMATIC
@ CONSTRAINT_TYPE_ROTLIMIT
@ CONSTRAINT_TYPE_SHRINKWRAP
@ CONSTRAINT_TYPE_SAMEVOL
@ CONSTRAINT_TYPE_SIZELIMIT
@ CONSTRAINT_TYPE_SPLINEIK
@ CONSTRAINT_TYPE_TRANSFORM
@ CONSTRAINT_TYPE_CAMERASOLVER
@ CONSTRAINT_TYPE_FOLLOWPATH
@ CONSTRAINT_TYPE_DAMPTRACK
@ CONSTRAINT_TYPE_LOCLIMIT
@ CONSTRAINT_TYPE_STRETCHTO
@ CONSTRAINT_TYPE_TRACKTO
@ CONSTRAINT_TYPE_GEOMETRY_ATTRIBUTE
@ CONSTRAINT_TYPE_ROTLIKE
@ CONSTRAINT_TYPE_LOCKTRACK
@ CONSTRAINT_TYPE_DISTLIMIT
@ CONSTRAINT_TYPE_ARMATURE
@ CONSTRAINT_TYPE_CLAMPTO
@ CONSTRAINT_TYPE_OBJECTSOLVER
@ CONSTRAINT_TYPE_CHILDOF
@ CONSTRAINT_TYPE_LOCLIKE
@ CONSTRAINT_TYPE_TRANSFORM_CACHE
@ CONSTRAINT_TYPE_SIZELIKE
@ CONSTRAINT_TYPE_TRANSLIKE
@ CON_ATTRIBUTE_MIX_REPLACE
@ CON_ATTRIBUTE_MIX_AFTER_SPLIT
@ CON_ATTRIBUTE_MIX_AFTER_FULL
@ CON_ATTRIBUTE_MIX_BEFORE_SPLIT
@ CON_ATTRIBUTE_MIX_BEFORE_FULL
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
static void rna_def_constrainttarget(BlenderRNA *brna)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
@ ACTCON_BONE_USE_OBJECT_ACTION
static void rna_def_constraint_armature_deform(BlenderRNA *brna)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
static void rna_def_constraint_follow_path(BlenderRNA *brna)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
static void rna_def_constraint_damped_track(BlenderRNA *brna)
@ CON_ATTRIBUTE_DOMAIN_FACE_CORNER
@ CON_ATTRIBUTE_DOMAIN_INSTANCE
@ CON_ATTRIBUTE_DOMAIN_POINT
@ CON_ATTRIBUTE_DOMAIN_CURVE
@ CON_ATTRIBUTE_DOMAIN_EDGE
@ CON_ATTRIBUTE_DOMAIN_FACE
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
std::string RNA_path_name_to_infix(const StringRefNull string)
static void rna_def_constraint_kinematic(BlenderRNA *brna)
void RNA_define_lib_overridable(const bool make_overridable)
static void rna_def_constraint_action(BlenderRNA *brna)
@ CONSTRAINT_SPLINEIK_EVENSPLITS
@ CONSTRAINT_SPLINEIK_NO_CURVERAD
@ CONSTRAINT_SPLINEIK_USE_BULGE_MAX
@ CONSTRAINT_SPLINEIK_USE_BULGE_MIN
@ CONSTRAINT_SPLINEIK_USE_ORIGINAL_SCALE
@ CONSTRAINT_SPLINEIK_NO_ROOT
@ STRETCHTOCON_USE_BULGE_MIN
@ STRETCHTOCON_USE_BULGE_MAX
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
static const EnumPropertyItem track_axis_items[]
static void rna_def_constraint_rotate_like(BlenderRNA *brna)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
@ TRANS_MIXSCALE_MULTIPLY
const EnumPropertyItem rna_enum_driver_target_rotation_mode_items[]
void RNA_def_constraint(BlenderRNA *brna)
struct bConstraint * BKE_constraint_find_from_target(struct Object *ob, struct bConstraintTarget *tgt, struct bPoseChannel **r_pchan)
@ OBJECTSOLVER_SET_INVERSE
@ CONSTRAINT_SPACE_OWNLOCAL
@ CONSTRAINT_SPACE_PARLOCAL
@ CONSTRAINT_SPACE_CUSTOM
@ CAMERASOLVER_ACTIVECLIP
static void rna_def_constraint_follow_track(BlenderRNA *brna)
void RNA_def_property_enum_bitflag_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_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PIVOTCON_FLAG_OFFSET_ABS
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void BKE_animdata_fix_paths(ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
@ FOLLOWTRACK_FRAME_STRETCH
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
@ CONSTRAINT_SPLINEIK_XZS_ORIGINAL
@ CONSTRAINT_SPLINEIK_XZS_NONE
@ CONSTRAINT_SPLINEIK_XZS_INVERSE
@ CONSTRAINT_SPLINEIK_XZS_VOLUMETRIC
static void rna_def_constraint_childof(BlenderRNA *brna)
void BKE_constraint_unique_name(struct bConstraint *con, ListBaseT< bConstraint > *list)
static void rna_def_constraint_transform(BlenderRNA *brna)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
static void rna_def_constraint_minmax(BlenderRNA *brna)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
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_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static void rna_def_constraint_track_to(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
static const EnumPropertyItem owner_space_pchan_items[]
const EnumPropertyItem rna_enum_object_axis_items[]
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
@ CONSTRAINT_SPLINEIK_YS_FIT_CURVE
@ CONSTRAINT_SPLINEIK_YS_NONE
@ CONSTRAINT_SPLINEIK_YS_ORIGINAL
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ CONSTRAINT_ARMATURE_ENVELOPE
@ CONSTRAINT_ARMATURE_QUATERNION
@ CONSTRAINT_ARMATURE_CUR_LOCATION
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ TRANSLIKE_REMOVE_TARGET_SHEAR
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
int BKE_constraint_targets_get(struct bConstraint *con, ListBaseT< bConstraintTarget > *r_targets)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
eActionConstraint_MixMode
@ ACTCON_MIX_BEFORE_SPLIT
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
static const EnumPropertyItem constraint_distance_items[]
static void rna_def_constraint_clamp_to(BlenderRNA *brna)
@ MOD_SHRINKWRAP_NEAREST_VERTEX
@ MOD_SHRINKWRAP_NEAREST_SURFACE
@ MOD_SHRINKWRAP_TARGET_PROJECT
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_constraint_location_limit(BlenderRNA *brna)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
static void rna_def_constraint_transform_like(BlenderRNA *brna)
static void rna_def_constraint_shrinkwrap(BlenderRNA *brna)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
@ CONSTRAINT_IK_TARGETAXIS
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void rna_def_constraint_size_like(BlenderRNA *brna)
@ CON_SHRINKWRAP_PROJECT_CULL_FRONTFACE
@ CON_SHRINKWRAP_PROJECT_OPPOSITE
@ CON_SHRINKWRAP_TRACK_NORMAL
@ CON_SHRINKWRAP_PROJECT_INVERT_CULL
@ CON_SHRINKWRAP_PROJECT_CULL_BACKFACE
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
static void rna_def_constraint_headtail_common(StructRNA *srna)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_constraint_transform_cache(BlenderRNA *brna)
static void rna_def_constraint_camera_solver(BlenderRNA *brna)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static const EnumPropertyItem euler_order_items[]
static void rna_def_constraint_geometry_attribute(BlenderRNA *brna)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
static void rna_def_constraint_stretch_to(BlenderRNA *brna)
@ TRANSLIKE_MIX_BEFORE_SPLIT
@ TRANSLIKE_MIX_BEFORE_FULL
@ TRANSLIKE_MIX_AFTER_SPLIT
@ TRANSLIKE_MIX_AFTER_FULL
static void rna_def_constraint_distance_limit(BlenderRNA *brna)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
void RNA_def_property_array(PropertyRNA *prop, int length)
static void rna_def_constraint_locate_like(BlenderRNA *brna)
const int rna_matrix_dimsize_4x4[]
static void rna_def_constraint_target_common(StructRNA *srna)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
static void rna_def_constraint_pivot(BlenderRNA *brna)
@ CONSTRAINT_OVERRIDE_LIBRARY_LOCAL
const EnumPropertyItem rna_enum_axis_xyz_items[]
@ FOLLOWTRACK_USE_3D_POSITION
@ FOLLOWTRACK_USE_UNDISTORTION
eActionConstraint_MixMode mix_mode
ListBaseT< bConstraintTarget > targets
eCopyRotation_MixMode mix_mode