Closed pmolodo closed 9 years ago
From Jesse.Ca...@gmail.com on July 27, 2014 18:31:44
I was mistaken, and the comments about the name() method are incorrect, but the issue does exist for nodeName() as stated.
From elron...@gmail.com on July 28, 2014 15:59:51
Fixed in 743cbe138df551df8982dfcf0e316dd05cf9fd0e : https://github.com/LumaPictures/pymel/commit/743cbe138df551df8982dfcf0e316dd05cf9fd0e
Status: Fixed
From Jesse.Ca...@gmail.com on July 27, 2014 18:26:43
DagNode.nodeName has the keyword argument stripNamespace. DependNode.nodeName does not. DependNode.name has the keyword argument stripNamespace. DagNode.name does not What Version of Maya are you using? 2013 x64 SP2 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Windows 7 Enterprise x64 SP1 What Version of PyMEL are you using? 1.0.4 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. import pymel.core as pm pm.newFile(force=True) pm.namespace(add='new') grp = pm.createNode('transform', name='new:group') f = pm.createNode('file', name='new:file')
print grp.nodeName(stripNamespace=True) print f.nodeName(stripNamespace=True) # Errors print f.name(stripNamespace=True) print grp.name(stripNamespace=True) # Errors
Original issue: http://code.google.com/p/pymel/issues/detail?id=314