Message 1 of 2
vrFileIOService saveFile function does not seem to use the export settings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to export a FBX model and get VRED (PRO 2024.1) to convert surface as meshes.
That works when I do it through the Export UI, and I make sure "as mesh" is selected for surfaces in FBX export settings.
However I tried to do the same thing through python API and the vrFileIOService saveFile function and I cannot get VRED to convert surfaces to mesh. I tried:
- changing the default FBX export settings in preference
- or changing those through python scripting
FBXSettings = vrFileIOService.getExportSettings(vrCADFileTypes.FileType.FBX)
FBXSettings.setExportSurfaces(vrdFileExportSettings.SurfaceExportMode.Mesh)
vrFileIOService.setExportSettings(vrCADFileTypes.FileType.FBX,FBXSettings)
vrFileIOService.saveFile(filename)
