Sure, always interested in bugfixes. I also made a issue for this - http://code.google.com/p/pymel/issues/detail?id=216 - you can post it there.
- Paul On Wed, Nov 24, 2010 at 1:43 AM, Felix Ulber <[email protected]> wrote: > I also experienced that - apparently it's a bug. I was able to fix it > easily (thats so great about openSource :) > If still of interest I can post that fix. > > Felix > > Am 20.10.2010 14:14, schrieb Erkan Özgür Yılmaz: > > by the way, I'm using 2011 x64 under linux and pymel 1.0.2 > > E.Ozgur Yilmaz > Lead Technical Director > eoyilmaz.blogspot.com > www.ozgurfx.com > > > On Wed, Oct 20, 2010 at 3:00 PM, Erkan Özgür Yılmaz <[email protected]>wrote: > >> Hi everybody, >> >> Is there a known issue about querying the renderLayer adjustments with >> Pymel, both of the codes below gives me errors: >> >> >> >> for renderLayer in pm.ls(type='renderLayer'): >> >> renderLayer.listAdjustments() >> >> >> # Error: Flag 'layer' must be passed a boolean argument when query flag is >> set >> >> # Traceback (most recent call last): >> >> # File "<maya console>", line 2, in <module> >> >> # File "/home/ozgur/maya/scripts/pymel-1.0.2/pymel/core/nodetypes.py", >> line 1679, in listAdjustments >> >> # return map( general.PyNode, _util.listForNone( >> cmds.editRenderLayerAdjustment( layer=self, q=1) ) ) >> >> # File "/home/ozgur/maya/scripts/pymel-1.0.2/pymel/internal/pmcmds.py", >> line 98, in wrappedCmd >> >> # res = new_cmd(*new_args, **new_kwargs) >> >> # TypeError: Flag 'layer' must be passed a boolean argument when query >> flag is set >> >> >> >> >> for renderLayer in pm.ls(type='renderLayer'): >> >> pm.editRenderLayerAdjustment(layer=renderLayer, q=1) >> >> # Error: Flag 'layer' must be passed a boolean argument when query flag is >> set >> >> # Traceback (most recent call last): >> >> # File "<maya console>", line 2, in <module> >> >> # File "/home/ozgur/maya/scripts/pymel-1.0.2/pymel/internal/pmcmds.py", >> line 98, in wrappedCmd >> >> # res = new_cmd(*new_args, **new_kwargs) >> >> # TypeError: Flag 'layer' must be passed a boolean argument when query >> flag is set # >> >> >> >> >> this seems to work though: >> >> for renderLayer in pm.ls(type='renderLayer'): >> >> pm.editRenderLayerAdjustment(renderLayer, q=1) >> >> thanks... >> >> E.Ozgur Yilmaz >> Lead Technical Director >> eoyilmaz.blogspot.com >> www.ozgurfx.com >> > > -- > http://groups.google.com/group/python_inside_maya > > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
