Hey - I was wondering if anyone here knew of a way to make an EMPTY
kSurfaceFaceComponent MObject?
Normally, I would use MFnDoubleInexedComponent.create - but there
seems to be a bug - it's not compatible with kSurfaceFaceComponent:
import maya.OpenMaya as api
dubComp = api.MFnDoubleIndexedComponent()
if dubComp.hasObj(api.MFn.kSurfaceFaceComponent):
print "MFnDoubleIndexedComponent COMPATIBLE with
kSurfaceFaceComponent"
else:
print "MFnDoubleIndexedComponent NOT compatible with
kSurfaceFaceComponent"
# Fails even though it's compatible...
dubComp.create(api.MFn.kSurfaceFaceComponent)
(I've already filed a bug report for this - #331854).
So... does anyone have any other ways to make an empty components? The
MFn*Component classes have ways to add elements, but not remove
them... and MFnNurbsSurface doesn't seem to have any methods that
return surface-face components...
- Paul
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---