ItemFilter by python-script not functioning

ItemFilter by python-script not functioning

kimstrandli
Explorer Explorer
530 Views
0 Replies
Message 1 of 1

ItemFilter by python-script not functioning

kimstrandli
Explorer
Explorer

Hey all!

 

I might be doing something wrong, but is there some hidden rules to making the itemFilter work using byScript and pythonModule? No matter what I do, it gives an error that it "cannot find procedure 'testFilter' "

I've tried including the procedure in the same module as the itemFilter-command, and from inside a specified module (myScriptFilters) as specified in the documentation.

 

 

from myScript import myScriptFilters
def testFilter(*args, **keywordArgs):
    print 'test'
    return None

newFilter = cmds.itemFilter(byScript='testFilter', pythonModule='myScriptFilters')
cmds.outlinerEditor("myOutliner", edit=True, filter=newFilter)

 

 

Any ideas? Anyone who can confirm whether this works or if its a bug?

0 Likes
531 Views
0 Replies
Replies (0)