Command to set and clear holes on given faces.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
assignHole (ah) | bool | ||
Assign the selected faces to be hole or unassign the hole faces to be non-hole. By default, the command will assign faces to be hole. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
createHistory (ch) | bool | ||
For objects that have no construction history, this flag can be used to force the creation of construction history for hole. By default, history is not created if the object has no history. Regardless of this flag, history is always created if the object already has history. |
Derived from mel command maya.cmds.polyHole
Example:
import pymel.core as pm
# To toggle hole on/off on the selected faces
pm.polyHole( )