Hi, Maya 2011....
cameraTransform, camera = pm.camera() print camera print type(camera) cameraShape1 <class 'pymel.core.nodetypes.Camera'> On Wed, Jun 16, 2010 at 8:48 PM, Sylvain Berger <[email protected]>wrote: > hi, I had this module that was working fine in Maya 2009. The module was > creating a camera. now in 2011 it breaks > > From what I see in 2009 creating a camera using pymel return a pymel camera > class > > *cameraTransform, camera = pm.camera()* > *print camera* > *print type(camera)* > *cameraShape1* > *<class 'pymel.core.nodetypes.Camera'>* > > But in 2011 it return a unicode > > *cameraTransform, camera = pm.camera()* > *print camera* > *print type(camera)* > *cameraShape2* > *<type 'unicode'>* > > The stange thing is that Maya 2011 was using the same pymel package (not > the pymel package that comes with maya 2011) > I have tried using the pymel package that comes with Maya install, but I > get the same result. > > Anyone could share some thoughts on why I get different results in 2009 and > 2011? > > Thanks > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
