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, inf], 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, inf], 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

Inherited Functions