Issue
At 3ds Max startup, MAXScript may pop up the following error messages:
Compile error: Can’t find include file: $startupScripts\vrsceneexport.ms
In line include “$startupScripts\\vrscene.export.ms”
“$startupScripts\\vrayinstall.ms”
include "$startupScripts\\vrsceneexport.ms"
include "$startupScripts\\vrayutils.ms"
include "$startupscripts\\vraylightlister.ms"
include "$startupScripts\\vrvismatconvertor.ms"
The errors are usually due to leftover files from previous V-Ray installation or due to incorrect installation/uninstallation of the product.
Solution 1
A quick way to fix such errors is to reset 3ds Max settings to default by following the steps below.
Resetting 3ds Max settings affects all user-made UI customizations. It may also affect other plugins.
- Close any running 3ds Max sessions.
- Navigate to the following path:C:\Users\%username%\AppData\Local\Autodesk\3dsMax\
- Open the folder for the current installation: i.e. 2020 – 64bit.
- Rename the ENU folder to ENU_old.
With the launch of 3ds Max, a new ENU folder is created automatically, and the issue should be resolved. However, if the issue is not resolved, you can restore 3ds Max settings by removing the new ENU folder and renaming the ENU_old folder back to ENU.
More information about the 3ds Max resetting process can be found here.
Solution 2
Another solution is to locate the corrupted script and remove it from the 3ds Max startup folder.
- Find the script-file-name either from the pop-up message or from the MAXScript Editor.
- Navigate to 3ds Max Startup folder:
C:\Program Files\Autodesk\3ds Max <Version>\scripts\Startup - Remove the script file.
- Reinstall V-Ray.
Source: Chaos.com