How to get the full render output path with python/pymel?

Hey guys,

I’m trying to get the render output path via python. Getting the “fileNamePrefix” is simple,
but I’m not able to get the final translated output path as shown at the top of the common settings tab.


I guess there is a simple way, but it seems that I can’t find it.

greetz
Ben

Hello, Ben!
Sorry for the late reply. You can try the following script:

import maya.cmds as cmds
imgDir = cmds.workspace(fileRuleEntry='images')
cmds.workspace(expandName=imgDir)