In case anyone else ever finds this post - the method I was looking for is:
MRenderUtil::exactFileTextureName https://help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__cpp_ref_class_m_render_util_html On Thu, Apr 4, 2019 at 6:13 PM Paul Molodowitch <elron...@gmail.com> wrote: > 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/CAAssL7aM%3DKckvu-UnVO98K53dN73TNJfdzBhE1fuwanu0Xfg7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.