# vRay Render Globals Info through MEL?

**URL:** https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318
**Category:** Maya
**Tags:** mel
**Created:** [June 17, 2013, 9:28pm UTC](https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318 "2013-06-17T21:28:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alexisbee](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@alexisbee](https://forum.highend3d.com/u/alexisbee)
#### Post date: [June 17, 2013, 9:28pm UTC](https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318/1 "2013-06-17T21:28:13Z")

</div>

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`;&nbsp;

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&nbsp;

---

<div class="post-metadata">

### Author: ![tokyopancake](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@tokyopancake](https://forum.highend3d.com/u/tokyopancake)
#### Post date: [June 18, 2013, 7:53am UTC](https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318/2 "2013-06-18T07:53:17Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![alexisbee](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@alexisbee](https://forum.highend3d.com/u/alexisbee)
#### Post date: [June 18, 2013, 2:24pm UTC](https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318/3 "2013-06-18T14:24:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![alexisbee](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@alexisbee](https://forum.highend3d.com/u/alexisbee)
#### Post date: [June 18, 2013, 2:39pm UTC](https://forum.highend3d.com/t/vray-render-globals-info-through-mel/318/4 "2013-06-18T14:39:02Z")

</div>

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