That's the problem for me... there are a many layers where the bug can be...
my code, pymel code, maya API.  It makes is hard to pinpoint why my script
fails

On Wed, Apr 8, 2009 at 11:28 AM, Chad Dombrova <[email protected]> wrote:

>
> it's very likely that the crashiness is a result instability in the
> api, but we'll definitely take a look.
>
> -chad
>
>
> On Apr 8, 2009, at 8:20 AM, sberger wrote:
>
> >
> > Well bad news here, basically I can't rely on any UV related pymel
> > function from the mesh class.
> >
> > I had many bug causing Maya to crash... I finally found out why.
> >
> > From a vertex selection I am getting the corresponding uv id using the
> > mesh.getUVIndices()
> > if I loop through my vertex selection and only get the UV indices and
> > print it... all is fine.
> > But if in my loop I edit the uv, like moving it using the polyEditUV()
> > funtion... the second time the loop execute the mesh.getUVindices()
> > crash...badly!
> >
> > I tried using pymel mesh.setUV() method... but I have undo issues.
> >
> > So i'm not touching pymel for uv editing anymore.  I hope you guys can
> > fix it in future releases, because the functions and methods are
> > really useful.  But they are so unreliable that I can't use them.
> >
> > Thanks
> >
> > On Apr 8, 10:51 am, sberger <[email protected]> wrote:
> >> I found another bug with UVs in the mesh class.
> >>
> >> The mesh.getUV() function return the v value twice.
> >> instead of returning a list like this: [uValue, vValue]
> >> it returns : [vValue, vValue]
> >>
> >> On Apr 7, 3:51 pm, Paul Molodowitch <[email protected]> wrote:
> >>
> >>
> >>
> >>> Yeah... I noticed that, too:
> >>
> >>> http://code.google.com/p/pymel/issues/detail?id=67
> >>
> >>> Basically, for any component type other than a few that we've
> >>> explicitly implemented right now, you'll get an error... We're
> >>> working
> >>> on a fix right now as we speak.  Thanks for the input, though!
> >>
> >>> - Paul
> >>
> >>> On Tue, Apr 7, 2009 at 12:43 PM, Sylvain Berger
> >>
> >>> <[email protected]> wrote:
> >>>> Also, I get the same behavior with Nurbs CVs
> >>
> >>>> On Tue, Apr 7, 2009 at 3:41 PM, sberger
> >>>> <[email protected]> wrote:
> >>
> >>>>> On the same line, I found another problem with UV component.
> >>>>> Basically I figured that there is no pymel polygon UV nodeType.
> >>>>> This example crash at the polyUVs command:  Create a poly shape,
> >>>>> select a few UVs and run the getPolygonUVs() function... it will
> >>>>> fail.
> >>
> >>>>> the other 3 polygon components work fine
> >>
> >>>>> def getComponent(componentId=0):
> >>>>>        componentSel = pm.filterExpand(ex=True, sm=componentId)
> >>>>>        componentList = []
> >>>>>        if componentSel is not None:
> >>>>>                for i in componentSel:
> >>>>>                        componentList.append(pm.PyNode(i))
> >>>>>        return componentList
> >>
> >>>>> def getPolygonVertices():
> >>>>>        return getComponent(31)
> >>>>> def getPolygonEdges():
> >>>>>        return getComponent(32)
> >>>>> def getPolygonFaces():
> >>>>>        return getComponent(34)
> >>>>> def getPolygonUVs():
> >>>>>        return getComponent(35)
> >>
> >>>>> On Apr 3, 4:04 pm, Paul Molodowitch <[email protected]> wrote:
> >>>>>> I confirmed this bug, and entered it into the tracker... thanks
> >>>>>> for
> >>>>>> reporting it.
> >>
> >>>>>> - Paul
> >>
> >>>>>> On Fri, Apr 3, 2009 at 12:21 PM, Sylvain Berger
> >>
> >>>>>> <[email protected]> wrote:
> >>>>>>> no the maya.cmds command works:
> >>>>>>> print cmds.ls(sl=1)
> >>>>>>> [u'polySurface1.map[10]']
> >>>>>>> the pymel command still returns this:
> >>>>>>> print pm.selected()
> >>>>>>> # Error: Maya Node does not exist: u'None'
> >>>>>>> # Traceback (most recent call last):
> >>>>>>> #   File "<maya console>", line 1, in <module>
> >>>>>>> #   File
> >>
> >>>>>>> "\\Isilon\alpha\data\shared_maya_folder\shared_scripts
> >>>>>>> \AVpythonScriptsDEV\p
> >>>>>>> ymel\core\general.py",
> >>>>>>> line 988, in selected
> >>>>>>> #     return ls( **kwargs )
> >>>>>>> #   File
> >>
> >>>>>>> "\\Isilon\alpha\data\shared_maya_folder\shared_scripts
> >>>>>>> \AVpythonScriptsDEV\p
> >>>>>>> ymel\core\general.py",
> >>>>>>> line 664, in ls
> >>>>>>> #     return map(PyNode, util.listForNone(cmds.ls(*args,
> >>>>>>> **kwargs)))
> >>>>>>> #   File
> >>
> >>>>>>> "\\Isilon\alpha\data\shared_maya_folder\shared_scripts
> >>>>>>> \AVpythonScriptsDEV\p
> >>>>>>> ymel\core\general.py",
> >>>>>>> line 1212, in __new__
> >>>>>>> #     pymelType, obj = nodetypes._getPymelType( argObj )
> >>>>>>> #   File
> >>
> >>>>>>> "\\Isilon\alpha\data\shared_maya_folder\shared_scripts
> >>>>>>> \AVpythonScriptsDEV\p
> >>>>>>> ymel\core\nodetypes.py",
> >>>>>>> line 4296, in _getPymelType
> >>>>>>> #     pymelType = getPymelTypeFromObject( obj )
> >>>>>>> #   File
> >>
> >>>>>>> "\\Isilon\alpha\data\shared_maya_folder\shared_scripts
> >>>>>>> \AVpythonScriptsDEV\p
> >>>>>>> ymel\core\nodetypes.py",
> >>>>>>> line 4239, in getPymelTypeFromObject
> >>>>>>> #     raise MayaNodeError
> >>>>>>> # MayaNodeError: Maya Node does not exist: u'None' #
> >>
> >>>>>>> On Fri, Apr 3, 2009 at 2:37 PM, chadrik <[email protected]>
> >>>>>>> wrote:
> >>
> >>>>>>>> pymel has an issue tracker:
> >>>>>>>>  http://code.google.com/p/pymel/issues/list
> >>>>>>>>  but posting here first is always a good idea.
> >>>>>>>> do you get the same crash when doing this:
> >>>>>>>> import maya.cmds as cmds
> >>>>>>>> cmds.ls(sl=1)
> >>>>>>>> i'm guessing not, but just making sure.
> >>>>>>>> -chad
> >>
> >>>>>>> --
> >>>>>>> They say, "Evil prevails when good men fail to act." What they
> >>>>>>> ought
> >>>>>>> to say
> >>>>>>> is, "Evil prevails."
> >>>>>>> Nicolas Cage as Yuri Orlov in Lord of War.
> >>
> >>>> --
> >>>> They say, "Evil prevails when good men fail to act." What they
> >>>> ought to say
> >>>> is, "Evil prevails."
> >>>> Nicolas Cage as Yuri Orlov in Lord of War.
> > >
>
>
> >
>


-- 
They say, "Evil prevails when good men fail to act." What they ought to say
is, "Evil prevails."
Nicolas Cage as Yuri Orlov in Lord of War.

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to