ECToo / pymel

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

keyword argument differences between DagNode.nodeName and DependNode.nodeName #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by Jesse.Ca...@gmail.com on 28 Jul 2014 at 1:26

GoogleCodeExporter commented 9 years ago
I was mistaken, and the comments about the name() method are incorrect, but the 
issue does exist for nodeName() as stated.

Original comment by Jesse.Ca...@gmail.com on 28 Jul 2014 at 1:31

GoogleCodeExporter commented 9 years ago
Fixed in 743cbe138df551df8982dfcf0e316dd05cf9fd0e:
https://github.com/LumaPictures/pymel/commit/743cbe138df551df8982dfcf0e316dd05cf
9fd0e

Original comment by elron...@gmail.com on 28 Jul 2014 at 10:59