vrFileIOService saveFile function does not seem to use the export settings

vrFileIOService saveFile function does not seem to use the export settings

flavien_picon
Explorer Explorer
496 Views
1 Reply
Message 1 of 2

vrFileIOService saveFile function does not seem to use the export settings

flavien_picon
Explorer
Explorer

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)
0 Likes
497 Views
1 Reply
Reply (1)
Message 2 of 2

marcus_fritzen
Autodesk
Autodesk

Try to use the exportNodes function and pass the root node.

Cheers,

Marcus



Marcus Fritzen
Principal Engineer
0 Likes