p.s.
i'm in the process of updating the docs online, so they might go down.
On Mar 14, 2009, at 3:17 AM, King wrote:
>
> Hi,
>
> node = PyNode("pCubeShape1")
> if node.nullattrib.exists():
> print "yes"
>
>
> and there is no attribute on "pCubeShape1" named "nullattrib". It
> should return false. Instead I am getting an error:
>
> # Error: Mesh(u'pCubeShape1') has no attribute or method named
> 'nullAttrib'
> # Traceback (most recent call last):
> # File "<maya console>", line 1, in <module>
> # File "D:\maya2008\Python\lib\site-packages\pymel\core
> \nodetypes.py", line 3276, in __getattr__
> # return DependNode.__getattr__(self,attr)
> # File "D:\maya2008\Python\lib\site-packages\pymel\core
> \nodetypes.py", line 1931, in __getattr__
> # raise AttributeError,"%r has no attribute or method named '%s'"
> % (self, attr)
> # AttributeError: Mesh(u'pCubeShape1') has no attribute or method
> named 'nullAttrib' #
>
>
> AFAIK this method was working previously. Is it changed? What's the
> new pymel way of checking an attribute existence?
>
> Cheers
>
> Prashant
> >
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---