pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.7k stars 310 forks source link

The output parameter doesn't work #197

Open chim678 opened 1 year ago

chim678 commented 1 year ago

Hello,

I am having a problem with the output parameter using the converter. Maybe I don't understand how it's supposed to work, but I expected that the converted JSX file will be located by the path declared as the output parameter. For example:

npx gltfjsx public/models/MyModel.glb --output /src/components

But it always stores it in the root directory.

Would be thankful for any hints.

DefinitelyMaybe commented 1 year ago

further to this, I've been running npx gltfjsx ${fullPath} --output ${outputFileName} --types where fullPath would be something like static\nature\gltf\x.gltf and outputFileName would be static\nature\gltf\x.tsx but it always outputs into the root directory