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