There was a typo in code.. It should be:
nsLs = cmds.namespaceInfo( lon=True )
defaultNs = ["UI", "shared", "camera01"] # I need camera01
diff = [item for item in nsLs if item not in defaultNs]
for ns in diff:
if cmds.namespace( exists=str(ns)):
cmds.namespace(rm=str(ns))
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/80fd0be8-c9b8-4500-b4db-76540d8774b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.