What about filePathEditor ? Maya native nodes all register their file-type attributes within the File Path Editor to be able to use the File Path Editor
If most 3rd party vendors do the same (we do), that unifies the process pretty much For those who don't, you can still fetch their custom nodes using Fred approach maybe Here's the command: filePathEditor -query -listRegisteredTypes Best, --- [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA] +33 (0)2 99 27 21 44 http://www.golaem.com On Sun, Oct 9, 2016 at 8:11 AM, Fredrik Averpil <[email protected]> wrote: > Like Marcus said, there's no universal way to do this, unfortunately. > > Another approach worth mentioning is to detect filepaths by using Maya > ASCII scene file format and parsing that. > > You can also iterate over all attributes of all objects in a scene and > detect filepaths, although this can be slow on complex scenes. > > Regex it's one way to detect a filepath but "if filepath.startswith(y)" > and "if x in filepath" are faster approaches. > > // F > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAD%3DwhWPa%2BdzJQC_3E6XB%3DHPA- > Dr%2BxaJQjExjby_UF%3DLf01qUjg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPa%2BdzJQC_3E6XB%3DHPA-Dr%2BxaJQjExjby_UF%3DLf01qUjg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFS5DCYUhS7POCrks0UdLcDfDCVEZLfL7-D0f8mrtFtpP1ArHA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
