Installs/uninstalls several things to help the user to perform the specified action : PickmaskInternal selection constraintsDisplay attributes
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
commandName (cn) | bool | ||
|
|||
convertSelection (cs) | bool | ||
convert all polys selected in object mode into their full matching component selection. For example : if a polyMesh is selected, polyInstallAction -cs polyCloseBorderwill select all border edges. |
|||
installConstraint (ic) | bool | ||
|
|||
installDisplay (id) | bool | ||
|
|||
keepInstances (ki) | bool | ||
Convert components for all selected instances rather than only the first selected instance. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
uninstallConstraint (uc) | bool | ||
|
|||
uninstallDisplay (ud) | bool | ||
|
Derived from mel command maya.cmds.polyInstallAction
Example:
import pymel.core as pm
# Will set pickmask to edges, install internal constraint
# so that only border edges may be selected.
pm.polyInstallAction( 'polyCloseBorder', ic=True )
# Same as previous, plus force the display of borders if the
# user didn't asked explicitely for it before.
pm.polyInstallAction( 'polyCloseBorder', ic=True, id=True )
# Shortcut for polyInstallAction -ic -id polyCloseBorder;
pm.polyInstallAction( 'polyCloseBorder' )
# Assuming the previous install was for closeBorder,
# will release internal border constraint, but go on displaying
# borders if the user didn't asked explicitely for it before.
pm.polyInstallAction( uc=True )
# Assuming the previous install was for closeBorder,
# will release internal border constraint, stop displaying
# borders if the user didn't asked explicitely for it before.
pm.polyInstallAction( uc=True, ud=True )
# Shortcut for polyInstallAction -uc -ud;
pm.polyInstallAction()