Learn how to link scripts to variant sets in VRED.
For additional information on scripting, see the Working with Scripts.
Video captions: In Autodesk VRED, scripts can be linked to their variant sets. Generally, Python is the programming language used in Autodesk VRED. Open the Variant Sets module with help of the Quick Access bar and create a new variant set. In the variant Sets, you will find the tab, Script, to which scripts can be loaded. Call up the Python documentation, under Help, in the main menu bar. Select Index and navigate with the aid of the search function to setRenderQuality. Copy the script line and switch to be Variant Sets module. Add the script into your Script tab. Copy the line, VR_QUALITY_RAYTRACING, and also add it to your Script tab. Rename the variant set to RT for raytracing. Duplicate the variant set, and again, go back to the Python documentation. Copy VR_REALISTIC_QUALITY_HIGH and add it to your Script tab. Name the variant set to GL for OpenGL. In the General tab, hotkeys can be set to run the variant sets. Execute the variant sets by double-clicking after each other. As you can see, the render mode is being controlled by a script in the variant sets. You can switch between OpenGL and raytracing.