Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides information on V-Ray Scene Files (.vrscene) and how to use them in workflows.

 


Overview

...

The .vrscene file format is a text file that can be exported from Maya and other platforms that use V-Ray. It contains all the information about the scene such as geometry, lights and shaders, and can be rendered with the V-Ray Standalone. Additionally, .vrscene files from any V-Ray platform can be imported into V-Ray for Maya. This functionality can transfer lights and entire assets with their textures and materials between V-Ray platforms, while animation is also included.

UI Text Box
typenote

Note that exporting .vrscene files is not supported by V-Ray PLE for Maya.

 

...

Want to follow along but don’t have a license?


UI Button
colorblue
newWindowtrue
icondownload
titleDownload Free Trial
urlhttps://www.chaos.com/free-trial?utm_campaign=docs-tutorials&utm_medium=website&utm_source=docs.chaos.com



Exporting V-Ray Scene Files

...

Section
Column
width62%

The settings for exporting .vrscene files are located in the V-Ray Common tab of the Render Settings, under the Translator rollout.

When Export to a .vrscene file is enabled, the scene will be translated and exported to a .vrscene file by the V-Ray for Maya translator. The Render option can be disabled so that only the .vrscene export is performed; otherwise the scene will both render and export. Additional options for exporting the scene will become available in the Translator rollout as well, including the ability to separate files by components or frames. For information on all available export options, see the Translator section of the V-Ray Common tab page.

During the export process, the scene can be further modified using the V-Ray scene access python API. For further information and examples, see the Python Access to the Translated V-Ray Scene page.

 
Column
width5%


Column
width33%

 



Exporting .vrscene files with Maya Batch

...

To do this, you will need to call Maya's Render executable with its full path, then passing the -r vray argument, which sets the renderer to V-Ray, the -exportFileName <filename> argument, which specifies where the resulting .vrscene file will be written and optionally the -noRender flag, which forces V-Ray to only to export to .vrscene without actually rendering.

 


Here's an example command line for Maya 2018 on Windows that loads a Maya scene file called myScene.ma located in C:\scenes and exports it to myVRScene.vrscene in the same directory without rendering.

...

Code Block
languagebash
titleExample: Exporting .vrscene file from Maya Batch
"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r vray -exportFileName "C:\scenes\myVRScene.vrscene" -noRender "C:\scenes\myScene.ma"

...


To learn more about using V-Ray with Maya Batch, please visit the Batch Rendering page. 


Exporting .vrscene files with Maya Export

...

The Export All option exports the entire scene as a .vrscene file. Export Selection option allows you to choose only geometry objects to export as a V-Ray Secene. 


UI Expand
title||File menu|| > Export All... > Export All Options > General Options > File type > V-Ray Scene

 

 

 



Importing and Managing V-Ray Scene Files

...

V-Ray Scene Files can be imported into Maya using the V-Ray Scene Manager. It can be launched from the V-Ray Shelf or by navigating to Create > V-Ray > VRayScene Manager.

 

 



 

 



The Scene Manager window allows users to easily import, preview, and instance .vrscene files in the current scene.

UI Text Box
sizemedium
typeinfo

Note that cameras and render settings will not be imported from .vrscene files even if their data is present within the file itself.

...


V-Ray Scene Manager 

 



When the Scene Manager imports a .vrscene file, additional options and overrides become available in a V-Ray Scene Node. For additional information and a workflow example, see the Scene Manager and V-Ray Scene Node pages.


 


Importing Materials Only

...

V-Ray for Maya provides a Import V-Ray Material from File for situations where only the materials in a .vrscene file need to be imported. This window can be launched from the V-Ray Shelf or navigating to Create > V-Ray > Import V-Ray material from file.

 


 

 



The V-Ray Material Importer window allows shows a list of materials within a loaded .vrscene file that can be imported into Maya. The materials will be reconstructed and their parameters can be changed after import. See the Import V-Ray Material from File page for details on importing materials from .vrscene files.


 


Additionally, the VRmat Material can be used to import materials from .vrscene files. This method doesn't allow for reconstructing and editing the materials. Instead, loading a .vrscene file to a VRmat material will display a selectable list of the materials contained in the file. For more information on workflows involving the transfer of V-Ray materials across multiple platforms, see the VRmat Material page.



 



Rendering with V-Ray Standalone

...

Code Block
vray -sceneFile="c:\temp\my_file.vrscene" -imgFile="c:\temp\render.png" -frames=1-10

 

 



Converting into Proxy Objects

...

Code Block
ply2vrmesh C:\scenes\myScene.vrscene -vrsceneList

 


Choose the object to convert by copying its name and pasting it as an argument to the -vrsceneNodeName flag as shown in the example below:

...

This converts the selected object to a .vrmesh file that you can then load with a VRayProxy back into Maya or any other V-Ray platform.