Message 1 of 1
ItemFilter by python-script not functioning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?