Get output image name with python

Ok, got it. Sorry for my noobism :slight_smile:

(Nonetheless, it would be nice to have the way to get the name without rendering. I want to evaluate the name to pass it to our rendermanager. Maybe i can just translate the scene but not render it an catch the name that way.)

Back on this :slight_smile:
Is there a simple way to catch results from posttranslate scripts? Or do i have to do things like changing stdout?

Can you explain, what do you want to achieve?

Sorry, if I’m spamming the forum a little bit too much with maybe noobish questions in the past days.
What I meant here, is that I want to use whatever a function in the posttranslate script returns in maya. So i get some values from the translated scene and use that for further processing internally in maya.
What I did as a workaround now: I printed the output to a tempfile and read that back in. Works for me.

Hm,
Probably you can use global variables or call a function/command, which does something (stores something in a global variable, uses optionvars or something like that).

But you’ve not told me what exactly do you want to do.
Would you like to explain the whole setup, so we can get some feedback if we can improve something in V-Ray?

/Teodor

Yes, of course, sorry. Basically I just want to get the resolved imagename of the image to be rendered. So tokens like <Layer> and <Scene> get resolved. Those will get parsed to the renderfarm manager.
So my first thought was, that I just can read it out from the vraySettings, like I can with mray/maya software. Then Vlado came up with the post-translate script which seemed pretty usefull to me. So I wrote a post translate script that does the things I’ve written before. But maybe I’m thinking way to complicated here. Maybe I should just resolve what I get from vraySettings.fileNamePrefix by hand and I’m done.

So, the goal was to get the output image names in order to pass it to the rendermanager. So we would be able to do some automated framechecking and stuff.

Ok, using the file or global functions should be the way to go then.