pymel.core.nodetypes.Lattice

Inheritance diagram of Lattice

class Lattice(*args, **kwargs)

class counterpart of mel function lattice

This command creates a lattice deformer that will deform the selected objects. If the object centered flag is used, the initial lattice will fit around the selected objects. The lattice will be selected when the command is completed. The lattice deformer has an associated base lattice. Only objects which are contained by the base lattice will be deformed by the lattice.

after(val=True, **kwargs)

If the default behavior for insertion/appending into/onto the existing chain is not what you want then you can use this flag to force the command to stick the deformer node after the selected node in the chain even if a new geometry shape has to be created in order to do so. Works in create mode (and edit mode if the deformer has no geometry added yet).

Derived from mel command maya.cmds.lattice

afterReference(val=True, **kwargs)

The -afterReference flag is used to specify deformer ordering in a hybrid way that choses between -before and -after automatically. If the geometry being deformed is referenced then -after mode is used in adding the new deformer otherwise -before mode is used. The net effect when using -afterReference to build deformer chains is that internal shape nodes in the deformer chain will only appear at reference file boundaries, leading to lightweight deformer networks that may be more amicable to reference swapping.

Derived from mel command maya.cmds.lattice

before(val=True, **kwargs)

If the default behavior for insertion/appending into/onto the existing chain is not what you want then you can use this flag to force the command to stick the deformer node before the selected node in the chain even if a new geometry shape has to be created in order to do so. Works in create mode (and edit mode if the deformer has no geometry added yet).

Derived from mel command maya.cmds.lattice

frontOfChain(val=True, **kwargs)

This command is used to specify that the new deformer node should be placed ahead (upstream) of existing deformer and skin nodes in the shape’s history (but not ahead of existing tweak nodes). The input to the deformer will be the upstream shape rather than the visible downstream shape, so the behavior of this flag is the most intuitive if the downstream deformers are in their reset (hasNoEffect) position when the new deformer is added. Works in create mode (and edit mode if the deformer has no geometry added yet).

Derived from mel command maya.cmds.lattice

getDeformerTools(**kwargs)

Returns the name of the deformer tool objects (if any) as string string ...

Derived from mel command maya.cmds.lattice

getDivisions()

Get the number of divisions in the lattice

Return type:(int, int, int)

Derived from api method maya.OpenMayaAnim.MFnLattice.getDivisions

getExclusive(**kwargs)

Puts the deformation set in a deform partition.

Derived from mel command maya.cmds.lattice

getFreezeMapping(**kwargs)

The base position of the geometries points is fixed at the time this flag is set. When mapping is frozen, moving the geometry with respect to the lattice will not cause the deformation to be recomputed.

Derived from mel command maya.cmds.lattice

getGeometry(**kwargs)

The specified object will be added to the list of objects being deformed by this deformer object, unless the -rm flag is also specified. When queried, this flag returns string string string ...

Derived from mel command maya.cmds.lattice

getGeometryIndices(**kwargs)

Complements the -geometry flag in query mode. Returns the multi index of each geometry.

Derived from mel command maya.cmds.lattice

getLdivisions(**kwargs)

Set the number of local lattice slices in x, y, z.

Derived from mel command maya.cmds.lattice

latticeReset(val=True, **kwargs)

Reset the lattice to match its base position. This will undo any deformations that the lattice is causing. The lattice will only deform points that are enclosed within the lattice’s reset (base) position.

Derived from mel command maya.cmds.lattice

parallel(val=True, **kwargs)

Inserts the new deformer in a parallel chain to any existing deformers in the history of the object. A blendShape is inserted to blend the parallel results together. Works in create mode (and edit mode if the deformer has no geometry added yet).

Derived from mel command maya.cmds.lattice

point(s, t, u)

Returns the point in the lattice that is at the given indices

Parameters :
s : int

s index

t : int

t index

u : int

u index

Return type:

Point

Derived from api method maya.OpenMayaAnim.MFnLattice.point

prune(val=True, **kwargs)

Removes any points not being deformed by the deformer in its current configuration from the deformer set.

Derived from mel command maya.cmds.lattice

remove(val=True, **kwargs)

Specifies that objects listed after the -g flag should be removed from this deformer.

Derived from mel command maya.cmds.lattice

removeTweaks(val=True, **kwargs)

Remove any lattice deformations caused by moving lattice points. Translations/rotations and scales on the lattice itself are not removed.

Derived from mel command maya.cmds.lattice

reset(sSize=1.0, tSize=1.0, uSize=1.0)

Reset the lattice points to a uniform parallelipiped shape with the specified dimensions: sSize x tSize x uSize

Parameters :
sSize : float

size in s dimension

tSize : float

size in t dimension

uSize : float

size in u dimension

Derived from api method maya.OpenMayaAnim.MFnLattice.reset

Undo is not currently supported for this method

setDivisions(s, t, u)

Set the number of divisions in the lattice

Parameters :
s : int

divisions in s dimension

t : int

divisions in t dimension

u : int

divisions in u dimension

Derived from api method maya.OpenMayaAnim.MFnLattice.setDivisions

setFreezeMapping(val=True, **kwargs)

The base position of the geometries points is fixed at the time this flag is set. When mapping is frozen, moving the geometry with respect to the lattice will not cause the deformation to be recomputed.

Derived from mel command maya.cmds.lattice

setGeometry(val=True, **kwargs)

The specified object will be added to the list of objects being deformed by this deformer object, unless the -rm flag is also specified. When queried, this flag returns string string string ...

Derived from mel command maya.cmds.lattice

setLdivisions(val=True, **kwargs)

Set the number of local lattice slices in x, y, z.

Derived from mel command maya.cmds.lattice

Previous topic

pymel.core.nodetypes.Lambert

Next topic

pymel.core.nodetypes.LayeredShader

Core

Core Modules

Other Modules

This Page