hi Matt,
i wasn't able to reproduce your problems on 2008 P11. i ran this test
on osx. i'll test Linux shortly
>>> import maya.standalone
>>> maya.standalone.initialize()
>>> import maya.cmds as mc
>>> mc.about(version=1)
u'2008 Extension 2P11'
>>> mc.ls('*.translateX')
[u'top.translateX', u'side.translateX', u'persp.translateX',
u'front.translateX']
>>> mc.polyCube()
[u'pCube1', u'polyCube1']
>>> mc.file( rename='/var/tmp/deleteme.ma' )
u'/var/tmp/deleteme.ma'
>>> mc.file( save=1)
u'/var/tmp/deleteme.ma'
>>> mc.file( new=1, f=1)
u'./untitled'
>>> mc.file( '/var/tmp/deleteme.ma', reference=1 )
File read in 0 seconds.
u'/var/tmp/deleteme.ma'
>>> mc.file( '/var/tmp/deleteme.ma', reference=1, namespace='foo' )
File read in 0 seconds.
u'/var/tmp/deleteme.ma'
>>> mc.ls('pC*')
[]
>>> mc.ls('pC*',r=1)
[u'foo:pCube1', u'foo:pCubeShape1']
can you run this test and see what you get?
-chad
On Jul 6, 2009, at 9:10 AM, Matthew Chapman wrote:
> I have been working with the mayapy interpreter and I have noticed
> some issues with the ls command.
> The recursive flag does not seem to work at all. Listing with
> attribute does not work either ls('*.translateX').
> Can anyone else confirm this?
>
> Maya 2008 Extension 2P10 x64 Linux
>
>
> Matt
>
> >
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---