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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to