duplicate problem

53 views
Skip to first unread message

Sebastian Schoellhammer

unread,
Dec 10, 2010, 1:05:04 AM12/10/10
to py...@googlegroups.com
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


--
Sebastian Schoellhammer

Sr. Technical Artist
Square Enix LTD
www.square-enix.com

Paul Molodowitch

unread,
Dec 10, 2010, 3:29:55 AM12/10/10
to py...@googlegroups.com
Hmm... not good. Thanks for reporting this, I made a ticket for it.

- Paul


--
You received this message because you are subscribed to the Google Groups "Pymel Python Module for Maya" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pymel+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pymel?hl=en.

Reply all
Reply to author
Forward
0 new messages