UNPKG

3dprintutils

Version:

Convert FBX 3D printing files to STL format

14 lines (11 loc) 391 B
import { fbxToStl } from './converters/fbx2stl.mjs'; (async () => { const inputFilePath = process.argv[2]; const outputFilePath = inputFilePath.replace(/\.fbx$/, '.stl'); try { await fbxToStl(inputFilePath, outputFilePath); console.log(`STL file saved to: ${outputFilePath}`); } catch (error) { console.error(`Error converting FBX to STL: ${error.message}`); } })();