MAXScript Material Conversion Failure for MSFS SDK in 3ds Max

The original MAXScript, designed to convert MSFS 2020 materials to MSFS 2024 materials in 3ds Max, fails to correctly identify and convert objects. The script generates an error related to unrecognized class names and does not perform the intended material conversions.

3ds Max Version: 2023
MSFS SDK Version: 0.9.1
Windows 10 22H2

The error message is always of the type:

Type error: getClassInstances required MAXClass, got: undefined
File name: C:/MSFS 2024 SDK/Tools/3dsmax/MSFS2024Package/scripts/msfs_max_ms_2024/MSFS_SceneConversion.ms
Line number: 7

As far as i understand the script should identify objects using old MSFS 2020 classes and prompt the user to upgrade them to new MSFS 2024 classes.The script fails with a “Type error” because the getClassInstances function is receiving undefined class names. As a result, no objects are identified, and no conversions are performed.

I modified the script to include a validation check using isKindOf oldClass MAXClass before calling getClassInstances. This was intended to skip undefined classes and prevent the error. However, this only revealed that all classes in oldClasses were undefined, suggesting a deeper issue with class recognition - ie no MSFS 2020 class could be detected

Is this a recognised issue or would this mean anything is wrong locally in terms of plugin or MAX SDK installation?

thanks
Emilios

Hello,

This should be fixed in the new SDK Core 2024 0.9.3.

Thank you

1 Like