ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

Duplicate error with namespaces #221

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Take straight from Sebastian Schoellhammer to pymel:

Hello I have a little problem with duplicate and pymel

It's a bit of a special case but I thought I'd bring it up anyway:

the hierarchy is like this:

group1
   namespace:obj1
   namespace:obj2

group2
   obj1
   obj2

duplicating namespace:obj1 like:

sel = ls(sl=True)[0]
d = duplicate(sel, ic=True )

results in a MayaNodeError. (there is still a duplicate being created though!)
I guess some name clashing with the node names in group2 as duplicate seems to 
remove the namespace.. 

However using cmds works fine:

sel = mc.ls(sl=True)[0]
d = mc.duplicate(sel, ic=True )

results in:

group1
   namespace:obj1
   namespace:obj2
   obj1

I can easily work around it but anyway.. :)

seb

Original issue reported on code.google.com by elron...@gmail.com on 10 Dec 2010 at 8:29