LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

added mergeNamespaceWithParent and mergeNamespaceWithRoot #385

Closed mjmvisser closed 7 years ago

mjmvisser commented 7 years ago

... to FileReference.remove to match docs:

remove() Remove the given file reference from its parent. This will also Remove everything this file references. Returns the name of the file removed. If the reference is alone in its namespace, remove the namespace. If there are objects remaining in the namespace after the file reference is removed, by default, keep the remaining objects in the namespace. To merge the objects remaining in the namespace to the parent or root namespace, use flags mergeNamespaceWithParent or mergeNamespaceWithRoot. The empty file reference namespace is then removed. To forcibly delete all objects, use flag force. The empty file reference namespace is then removed.

Derived from mel command maya.cmds.file

I didn't add the force flag, not sure if it should be added or just always passed as f=1.

pmolodo commented 7 years ago

Merged, thanks for the submission!