Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    Click image for larger version

Name:	Screenshot 2020-11-24 210306.jpg
Views:	696
Size:	11.4 KB
ID:	1093318
    I guess there is a simple way, but it seems that I can't find it.


    greetz
    Ben

  • #2
    Hello, Ben!
    Sorry for the late reply. You can try the following script:
    Code:
    import maya.cmds as cmds
    imgDir = cmds.workspace(fileRuleEntry='images')
    cmds.workspace(expandName=imgDir)
    Iliyana Vladeva
    V-Ray for Maya developer

    Comment

    Working...
    X