user: What is Options and how is it used in Blender Python scripting?

assistant: Mode
:   Defines the kind of deformation which will be applied.
    The figure below shows the four modes, applied to a text object.
    The origin of the object is at the very left of the text.

    |  |  |
    | --- | --- |
    | ../../../_images/modeling_modifiers_deform_simple-deform_twist.png   Twist around X axis (180°). | ../../../_images/modeling_modifiers_deform_simple-deform_bend.png   Bend around Z axis (180°). |
    | ../../../_images/modeling_modifiers_deform_simple-deform_taper.png   Taper along X axis (factor = 2). | ../../../_images/modeling_modifiers_deform_simple-deform_stretch.png   Stretch along X axis (factor = 0.3). |

    Twist
    :   Rotates the mesh around the specified *Axis*.
        Each vertex along the Deform axis is rotated around the object’s origin.
        If the origin is inside the object, this results in a twisted appearance.
        Below the origin, there is a negative rotation and
        above the origin, the rotation is positive or clockwise.
        Vertices in the same plane as the origin are not rotated.

        The total amount of rotation is specified by the angle
        and the rotation at each vertex is thus weighted by the distance
        of the vertex to the origin of the object.
        Vertices that are furthest away from the object origin have max rotation,
        positive or negative.

    Bend
    :   Bends the mesh over the specified *Axis*.
        The Bend mode is more complex and less intuitive.
        The picture below shows the same plane but with different Deform and Bending axes.

        |  |  |
        | --- | --- |
        | ../../../_images/modeling_modifiers_deform_simple-deform_bend-1.png   Deform axis X or Y (a). | ../../../_images/modeling_modifiers_deform_simple-deform_bend-2.png   Deform axis Z (b). |
        | ../../../_images/modeling_modifiers_deform_simple-deform_bend-3.png   Deform axis X. Local axis Y points down (c). | ../../../_images/modeling_modifiers_deform_simple-deform_bend-4.png   Deform axis X. Local axis Y points up (d). |

        Using a mesh plane and setting the Deform axis to X or Y will not result in any deformation (Fig a).
        You expect that the bending should be something like Figure (c) or (d).
        In a 3D world however, selecting the X axis introduces an ambiguity because
        bending along the X axis could result in Figure (c) or (d).
        The following pairs describe the selected deform axis vs. the desired bending axis:
        X and Z, Y and Z, Z and X.

        In Fig (a), because of the Deform axis X, the Bending is along the Z.
        All vertices however have the same Z coordinate equal to the local origin.
        So, no deformation occurs. In Fig (d) the local axes are rotated around the Deform axis X,
        so that the Bending axis Z points to the left.
        So, all vertices are bend for their Z coordinate.
        The further away from the local origin, the more bending.

        This explains also the unexpected result of Fig (b).
        The Deform axis is set here to Z (pointing up).
        So, according to the pairs above, the Bending axis defaults to X.
        All vertices of the plane are bent in their X coordinate.
        The further away, the more rotation occurs.
        Negative X coordinates are rotated counterclockwise.

    Taper
    :   Linearly scales along the specified *Axis*.
        The scaling factor is weighted by the distance from the origin of the object in the deform axis.
        No scaling occurs in the plane of the origin of the object.
        The maximum scaling occurs at the vertices that are furthest away from the local origin.
        This can be a positive or negative scaling, depending on the location of the origin.
        If the local origin is within the object, the deformed object appears tapered.

    Stretch
    :   Stretches the object along the specified *Axis*.
        If the local origin is within the object, the deformed mesh
        looks stretched like pulling a rubber from both sides.
        With a positive factor, the mesh gets longer in the deformed axis,
        wider at the borders and thinner at the origin than the original mesh.
        If the factor is negative, then the mesh is squashed in the deformed axis,
        thicker at the origin and thinner at the borders.

Angle (Twist & Bend)/Factor (Taper & Stretch)
:   The total amount of deformation. Can be negative to reverse the deformation.

Axis, Origin
:   The name of an object that defines the origin and axis of deformation (usually an empty).
    This object can be:

    - Rotated to control the axis (its local *Axis* is now used as the deformation one).
    - Moved to control the origin of the deformation.
    - Scaled to change the deformation factor.

### Restrictions

Limits
:   You can set the lower and upper limits of the deformation.
    The upper limit cannot be lower than the lower one. These limits are mapped on the Deform axis.

Lock (Twist, Taper and Stretch modes only)
:   These controls whether the coordinates along the two other axes are allowed to change or not.
    E.g. if you *Stretch* your object along its Z axis,
    it is possible to squash along the X axis only, by locking the Y one.

Vertex Group
:   The name of the vertex group that indicates whether
    and how much each vertex is influenced by the deformation.
    The amount of influence is determined by the weight in the Weight Paint map.