gltfjsx icon indicating copy to clipboard operation
gltfjsx copied to clipboard

The output parameter doesn't work

Open chim678 opened this issue 2 years ago • 1 comments

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.

chim678 avatar Apr 17 '23 09:04 chim678

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

DefinitelyMaybe avatar Apr 19 '23 23:04 DefinitelyMaybe