This tutorial covers how to apply color to XGen splines using the User Data node in combination with a texture map. We will use a simple polygon mesh as the basis for our XGen description. 

An example scene file can be downloaded here.


 

 

 

Spline Density set to 30

 

Add the name 'color' to the Color Attr Name in the Ai UserData Color node

 

Splines are using the black Default Color from the Ai UserData Color node

 

Custom Shader Parameters

Custom Shader Parameters

 

Custom Shader Parameters set to Color

 

 

Remember to select the disk icon after updating the file texture. Otherwise, XGen will not bake the ptex map to disk and the render will not change.

 

 

Further examples

 

 

 

Thanks to Pedro Fernando Gómez for his assistance with XGen.