Ie, if file.fileTextureName contains a relative path, how do I get the full
path that maya will resolve that to?

If it's using udims, I think you can use computedFileTextureNamePattern
instead... but if not, the best solution I can come up with is to:

1) query cmds.workspace(q=1, rootDirectory=1)
2) append cmds.workspace(fileRuleEntry="sourceImages")
3) append your relative file.fileTextureName

For some reason, I thought there was a single command that would do this
(or something similar).  Am I misremembering? Alternatively, does anyone
know if the fileRuleEntry is always "sourceImages"? Does it every check
"just" the workspace rootDirectory? If so, which takes precedence?

Thanks!

 - Paul

-- 
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/CAAssL7aXrQ1FpVTFjsEiC%3D06U027bhR2HmemSa4y%2BtYiMuzRsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to