Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

deformableShape( [objects...] , [chain=boolean], [createOriginalGeometry=boolean], [frontOfChain=boolean], [localShapeInAttr=boolean], [localShapeOutAttr=boolean], [originalGeometry=boolean], [worldShapeOutAttr=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

deformableShape is undoable, NOT queryable, and NOT editable.

This command finds information about deforming shape(s).

If no shapes are specified on the command then the curently selected shapes are used.

Return value

None

Flags

chain, createOriginalGeometry, frontOfChain, localShapeInAttr, localShapeOutAttr, originalGeometry, worldShapeOutAttr
Long name (short name) Argument types Properties
chain(ch) boolean create
This flag will return the list of deformers that deformer the specified shapes
createOriginalGeometry(cog) boolean create
This creates an original geometry for the shape if it does not exist yet.
frontOfChain(foc) boolean create
This flag will return the plug at the front of the chain
localShapeInAttr(lsi) boolean create
Returns the name of local shape in attribute
localShapeOutAttr(lso) boolean create
Returns the name of local shape out attribute
originalGeometry(og) boolean create
This flag will return the name of the plug at the front end of the chain that is the best candidate to be used as the originalGeometry
worldShapeOutAttr(wso) boolean create
Returns the name of world shape out attribute

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.deformableShape('ball', cog=True)