Lattice Operators
- bpy.ops.lattice.flip(*, axis='U')
Mirror all control points without inverting the lattice deform
- Parameters:
axis (Literal['U', 'V', 'W']) – Flip Axis, Coordinates along this axis get flipped (optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.make_regular()
Set UVW control points a uniform distance apart
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_all(*, action='TOGGLE')
Change selection of all UVW control points
- Parameters:
action (Literal['TOGGLE', 'SELECT', 'DESELECT', 'INVERT']) –
Action, Selection action to execute (optional)
TOGGLEToggle – Toggle selection for all elements.SELECTSelect – Select all elements.DESELECTDeselect – Deselect all elements.INVERTInvert – Invert selection of all elements.
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_less()
Deselect vertices at the boundary of each selection region
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_mirror(*, axis={'X'}, extend=False)
Select mirrored lattice points
- Parameters:
axis (set[Literal[Axis Flag Xyz Items]]) – Axis, (optional)
extend (bool) – Extend, Extend the selection (optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_more()
Select vertex directly linked to already selected ones
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_random(*, ratio=0.5, seed=0, action='SELECT')
Randomly select UVW control points
- Parameters:
ratio (float) – Ratio, Portion of items to select randomly (in [0, 1], optional)
seed (int) – Random Seed, Seed for the random number generator (in [0, inf], optional)
action (Literal['SELECT', 'DESELECT']) –
Action, Selection action to execute (optional)
SELECTSelect – Select all elements.DESELECTDeselect – Deselect all elements.
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.lattice.select_ungrouped(*, extend=False)
Select vertices without a group
- Parameters:
extend (bool) – Extend, Extend the selection (optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]