Skip to content

Instantly share code, notes, and snippets.

@apokellypse
Last active April 8, 2019 05:50
Show Gist options
  • Save apokellypse/151029b3165c39572bb68644b8c128bd to your computer and use it in GitHub Desktop.
Save apokellypse/151029b3165c39572bb68644b8c128bd to your computer and use it in GitHub Desktop.
Add Faces To Objects Such That Objects Are Now Closed Shells
### iterative_polycloseborder.py
### author: Kelly Yu
import maya.cmds as cmds
cmds.select(clear=1)
# select all objects that start with polySurface
bunny_slices = cmds.ls('polySurface*')
for slice in bunny_slices:
# create faces along edges that are not part of a face
cmds.polyCloseBorder(slice)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment