LumaPictures / pymel

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

Bug in getClassification with satisfies argument #343

Closed pmolodo closed 7 years ago

pmolodo commented 8 years ago

From felix.ul...@gmx.de on October 29, 2013 03:25:12

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: http://code.google.com/p/pymel/issues/detail?id=310

kartikg3 commented 8 years ago

Have a fix for this in my local fork; I will cleanup my branch and send a PR.

pmolodo commented 7 years ago

fixed thanks to the PR