ECToo / pymel

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

Bug in getClassification with satisfies argument #310

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

When calling getClassification, since maya 2013 there is an argument 
"satisfies", that returns a bool, telling if the specified node type is of the 
specified classification string.
Using this argument leads to a TypeError, because the wrapped command 

1) Does not pipe through keyword-arguments
2) allways expects the commands return value to be a list (anyway, the error is 
already caused by 1)

What Version of Maya are you using?

2014 SP 2

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

Linux Centos 6.2 64bit

What Version of PyMEL are you using?

1.0.5

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

(see above - TypeError)

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.getClassification('lambert', satisfies='shader')

Does maya.cmds exhibit the same problem?

no

Please provide any additional information below.

Original issue reported on code.google.com by felix.ul...@gmx.de on 29 Oct 2013 at 10:25