---
title: "XGen and V-Ray in Maya 2015 and newer"
canonical: "https://documentation.chaos.com/space/VMAYA/111741162/XGen%20and%20V-Ray%20in%20Maya%202015%20and%20newer"
format: markdown
---
This page provides information about the XGen Arbitrary Primitive Generator.

 

## **Overview**

---

 

## **XGen in Maya Batch Mode**

---

 

---

 

 

## **Parallel Export**

---

## **Caching XGen Primitives to a .vrscene**

---

 

 

### Scripting the Caching Operation with Python

---

Below is sample Python code that can be used to export the vrscene cache.

```python
from vray.xgen import *
# export the cache
exportXGenDescriptionToVrscene("description4", "collection4", "C:/my.vrscene")
# prepare for using the cache
setUseVRSceneCacheForXGenDescription("description4", "collection4", 1)
setVRSceneCacheForXGenDescription("description4", "collection4", "C:/my.vrscene")
# render
import maya.mel as mel
mel.eval("vrend -camera persp -layer defaultRenderLayer")
```

## **Tessellation Parameters**

---

 

 

 

## **Per Spline Mapping**

---

![image](media://b5fbb009-5e0e-4686-b95c-0453f8e14571)

---

 


![image](media://84f5fa8d-a6eb-4f0d-af86-370cdbcb718d)


## **Notes**

---

- XGen Delta files are supported for use with V-Ray.
- When working with groomable splines, if a render or an IPR render happens, to continue updating the splines with respect to the groom splines, one has to refresh XGen, groom a bit more and refresh again. Only then will the splines regenerate accordingly to the groom splines (which are only for the viewport).
- V-Ray supports textures for interactive groom splines in Maya 2017.