# API for Vray ?

**URL:** <https://forums.chaos.com/t/api-for-vray/38374>\
**Category:** General\
**Created:** [August 18, 2011, 9:35pm UTC](https://forums.chaos.com/t/api-for-vray/38374 "2011-08-18T21:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bernhard/32/7706_2.png) [@bernhard](https://forums.chaos.com/u/bernhard)\
**Post date:** [August 18, 2011, 9:35pm UTC](https://forums.chaos.com/t/api-for-vray/38374/1 "2011-08-18T21:35:45Z")

</div>

For my TD, is there an API for vray within maya that I can use to script with?  
If so where can I find it?

thx a lot

---

<div class="post-metadata">

**Author:** ![t.petrov](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t.petrov](https://forums.chaos.com/u/t.petrov)\
**Post date:** [August 19, 2011, 8:19am UTC](https://forums.chaos.com/t/api-for-vray/38374/2 "2011-08-19T08:19:08Z")

</div>

What do you want to script?  
There is the python scene access api, it is used to modify the scene just after the export and before rendering.  
Here is the docs: [Chaos: Industry-leading design and visualization software](http://www.spot3d.com/vray/help/maya/150R1/render%5C_scene%5C_access.htm)

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [August 19, 2011, 11:30am UTC](https://forums.chaos.com/t/api-for-vray/38374/3 "2011-08-19T11:30:22Z")

</div>

In addition to what Teodor said, there are several MEL scripts that can be used to control various parts of V-Ray (e.g. add V-Ray attributes to objects, export .vrmesh files, start a render and so on). The V-Ray settings can be modified as for any other Maya node.

Best regards,  
Vlado
