ECToo / pymel

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

New namespace command options in 2013 not in Namespace Class #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

In Maya 2013, the namespace command got 3 new flags that handle, how the 
namespace's content is dealt with when deleting a non empty namespace: 

-mergeNamespaceWithParent
-mergeNamespaceWithRoot
-deleteNamespaceContent

http://download.autodesk.com/global/docs/maya2013/en_us/Commands/namespace.html

Ihmo those should become flags for the Namespace.remove method.

What Version of Maya are you using?

2013-x64 SP 1 Linux

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)

CentOS 6.3 x86_64

What Version of PyMEL are you using?

1.0.4

What is the expected output? What do you see instead?

--

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.

--

Does maya.cmds exhibit the same problem?

not applicable

Please provide any additional information below.

Original issue reported on code.google.com by felix.ul...@gmx.de on 29 Aug 2012 at 2:21

GoogleCodeExporter commented 9 years ago
I agree that these flags should be added, to make behavior similar to maya.cmds

However, the pymel Namespace.remove method already has some customization, and 
I will need to check the exact behavior of these new flags (ie, with 
sub-namespaces, and how children-of-transforms in other namespaces are treated, 
etc) to provide a good balance of backward-compatibility and similarity with 
maya.cmds.namespace

Original comment by elron...@gmail.com on 29 Aug 2012 at 5:30

GoogleCodeExporter commented 9 years ago
...in the meantime, behavior similar to 
mergeNamespaceWithParent/mergeNamespaceWithRoot can likely be gotten with 
Namespace.move; and the behavior of deleteNamespaceContent is similar to what 
Namespace.remove already provides

Original comment by elron...@gmail.com on 29 Aug 2012 at 5:37