Check out the Namespace object in PyMEL. http://goo.gl/FGjgU

import pymel.core as pm

myNS = pm.Namespace(':').create('MyNS')

(now you can use all of the '.'(dot) methods to work with and remove the 
namespace wiht some Pythonic sugar.)

On Tuesday, June 5, 2012 2:00:25 AM UTC-4, anim8err wrote:
>
> I have several existing mel and python scripts that I need to change to 
> deal with references. Is there a way to deal with them like setting a 
> namespace or should I just do string manipulation?
>
> Thanks.
>
> an8r
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to