Mesh.getHoles() not working properly?

91 views
Skip to first unread message

Christian Akesson

unread,
Jun 13, 2013, 3:17:08 PM6/13/13
to python_in...@googlegroups.com
The following code:
import pymel.core
myT = pymel.core.general.selected()[0]
print myT.getHoles()
print myT.getShape().getHoles()

This always returns
(0, [], [])

Even when my test mesh has holes in it.
Anyone know what gives there?

/Christian

P.S would be nice to be able to create custom tags (allowed tags are pretty generic)

Ted Charlton

unread,
Jun 24, 2013, 11:48:45 AM6/24/13
to python_in...@googlegroups.com
In Maya, the concept of a polygon 'hole' is a single faces with a hole in it, not a mesh with faces deleted.
You can create a face with a hole in it using the Create Face tool, holding down ctrl for the first internal vertex or the Make Hole Tool.

Inline image 2Inline image 3



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To post to this group, send email to python_in...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



hole.png
no_holes.png
Reply all
Reply to author
Forward
0 new messages