Read and Modify only JSON Part of GLTF File (NodeIO) #964
-
|
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @chrisssssy! The closest thing within the glTF Transform library is glTF Transform cannot itself do anything to the model without loading resources. It won't modify textures or geometry, but the .bin file could come out different due to data layout and padding differences. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the answer. I will try it like you said. |
Beta Was this translation helpful? Give feedback.
Hi @chrisssssy! The closest thing within the glTF Transform library is
io.readAsJSON('path/to/scene.gltf'), which gives you the raw JSON, .bin, and textures. But for what you're describing, it may be just as easy not to use glTF Transform — load the.gltfwith the Node.jsfsutility, parse it as JSON, modify it, and save back to disk.glTF Transform cannot itself do anything to the model without loading resources. It won't modify textures or geometry, but the .bin file could come out different due to data layout and padding differences.