Thanks everyone for your replies! It certainly looks more challenging than I would have thought, the cmds.file(query=True, list=True) is close, and the listFiles of filePathEditor almost got it, and though it looks to work with file nodes, it doesn’t seem to work with reference nodes, and I wonder what else it won’t work with. Alembic files probably, as you say, Roy.
What’s more, it doesn’t look like reference nodes contain their unresolved filename, maybe this is resolved by the editor itself? # Always returns a resolved path? cmds.getAttr("ben02_RN.fileNames[0]") The goal of this little experiment is to be able to look at a scene and determine whether there are any *absolute paths* in it. As in, paths starting with either a drive letter and a colon (Windows), or a forward slash (Unix). I’d like to look at a scene with these paths: $ROOT/myfile.mb $OTHERROOT/myotherfile.mb /server/mythirdfile.mb And go “aha, that’s 1 absolute path, and it belongs to node.myAttr”. -- 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 https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAbNqVeiS6guaWv_-792QnRCeezSxTQpVzLYHMcKOxn4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.