Instead of 
name = idx.data()

for exc in self._excludes: 
    if name.endswith(exc):
        return False

Below one is simple & perfect in my case, wht do you think ??
fileType = self.sourceModel().fileInfo(idx).suffix()
for exc in self._excludes: 
    if exc == fileType:
        return False

You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to