When I do a union, subtraction or any other boolean operation using
the sets function it errors out with:

# Error: Maya Node does not exist: u"[u'cone1', u'sphere1']"
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "C:\Users\scott\Documents\python\pymel\core\general.py", line
912, in sets
#     return PyNode(cmds.sets( *args, **kwargs ))
#   File "C:\Users\scott\Documents\python\pymel\core\general.py", line
1198, in __new__
#     raise MayaNodeError( name )
# MayaNodeError: Maya Node does not exist: u"[u'cone1', u'sphere1']"
#


The example sets code from the docs errors out as well.
Doc example code:

# create some objects
pm.sphere( n="sphere1" )
pm.cone( n="cone1" )

# create a set with whatever is currently active
pm.select( 'sphere1' )
newSet1 = pm.sets()
pm.select( 'cone1' )
newSet2 = pm.sets()

# Return the union of two sets
pm.sets( newSet2, un=newSet1 )


Is this a bug? Any ideas?
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to