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.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

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.

Derived from mel command maya.cmds.polyHole

Example:

import pymel.core as pm

import maya.cmds as cmds

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

Previous topic

pymel.core.modeling.polyHelix

Next topic

pymel.core.modeling.polyInfo

Core

Core Modules

Other Modules

This Page