vRay Render Globals Info through MEL?

Hi,

I'm writing a script where I need to get the file path of my render on a specific frame.

If I use Mental Ray, I can get the file path I need through using:
string $my_fileAttachment[] = renderSettings -lyr $my\_renderLayer -fp -gin $my\_frameNumber; 

Unfortunately, when I use vRay, the information doesn't update... it doesn't change the img format or file prefix to reflect the vRay settings, giving me an incorrect filepath.

I've been trying to figure out if there's another command to get vRay render globals info, but haven't had much luck in my search. Any help would be much appreciated!!

Thanks so much,
Alexis 

It's been a while back since I worked with Vray so I might be wrong, but I believe there's a 'vray render globals' node somewhere in your scene. It could be hidden as a non-dag node. You can use the regular getAttr to get the settings from there.

Thanks, I'll give it a look and report back if I find anything!

i think i'm gonna have to do a few extra steps to build my file path, but i found it! :slight_smile:
a listAttr on vraySettings should hopefully give me everything I need...