pymel.core.modeling.polyHole

polyHole(*args, **kwargs)

Command to set and clear holes on given faces.

Flags:

Long Name / Short Name Argument Types Properties
assignHole / ah bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
createHistory / ch bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polyHole

Example:

import pymel.core as pm

# To toggle hole on/off on the selected faces
pm.polyHole( )