# ShrinkwrapConstraint(Constraint)

base classes — `bpy_struct`, `Constraint`

class `bpy.types.``ShrinkwrapConstraint`(Constraint)

  Create constraint-based shrinkwrap relationship

  `distance`

    Distance to Target

    Type: | float in [0, 100], default 0.0

  `project_axis`

    Axis constrain to

    Type: | enum in [‘POS_X’, ‘POS_Y’, ‘POS_Z’, ‘NEG_X’, ‘NEG_Y’, ‘NEG_Z’], default ‘POS_X’

  `project_axis_space`

    Space for the projection axis

    - `WORLD` World Space, The constraint is applied relative to the world coordinate system.
    - `POSE` Pose Space, The constraint is applied in Pose Space, the object transformation is ignored.
    - `LOCAL_WITH_PARENT` Local With Parent, The constraint is applied relative to the local coordinate system of the object, with the parent transformation added.
    - `LOCAL` Local Space, The constraint is applied relative to the local coordinate system of the object.

    Type: | enum in [‘WORLD’, ‘POSE’, ‘LOCAL_WITH_PARENT’, ‘LOCAL’], default ‘WORLD’

  `project_limit`

    Limit the distance used for projection (zero disables)

    Type: | float in [0, 100], default 0.0

  `shrinkwrap_type`

    Select type of shrinkwrap algorithm for target position

    - `NEAREST_SURFACE` Nearest Surface Point, Shrink the location to the nearest target surface.
    - `PROJECT` Project, Shrink the location to the nearest target surface along a given axis.
    - `NEAREST_VERTEX` Nearest Vertex, Shrink the location to the nearest target vertex.

    Type: | enum in [‘NEAREST_SURFACE’, ‘PROJECT’, ‘NEAREST_VERTEX’], default ‘NEAREST_SURFACE’

  `target`

    Target Object

    Type: | `Object`

Inherited Properties

`bpy_struct.id_data` `Constraint.name` `Constraint.type` `Constraint.owner_space` `Constraint.target_space` `Constraint.mute` `Constraint.show_expanded` | `Constraint.is_valid` `Constraint.active` `Constraint.is_proxy_local` `Constraint.influence` `Constraint.error_location` `Constraint.error_rotation`

Inherited Functions

`bpy_struct.as_pointer` `bpy_struct.driver_add` `bpy_struct.driver_remove` `bpy_struct.get` `bpy_struct.is_property_hidden` `bpy_struct.is_property_readonly` `bpy_struct.is_property_set` `bpy_struct.items` | `bpy_struct.keyframe_delete` `bpy_struct.keyframe_insert` `bpy_struct.keys` `bpy_struct.path_from_id` `bpy_struct.path_resolve` `bpy_struct.property_unset` `bpy_struct.type_recast` `bpy_struct.values`