Babylon is exporting .txt now .obj

Hello, i have this code but it exporting .txt what should i do if i want to export .obj file?

it is still an obj file (store in a text file that you can rename)

Yes i know when i manually rename it. I need rename it automatically.

This is not a bjs question:) you should look at the saveas file dialog provided by browsers

I did this and it works, thanks. Idk why i didnt try it before… = ${fileName}.obj;

1 Like