I have a json file. I guess it exported with Three js exporter addon. I don't have source of this file, but i want to open it in blender again and convert to another format. Is this possible ?
I installed a lot of exporters(this one for example), but didn't find import from JSON. Three.js exporter after install says:
Related
I an trying to use .dwg file in web app. I have recently find this (https://github.com/aalavandhaann/blueprint-js) works base on three.js file. while dwg is not compatible with three.js is there anyway to convert dwg file to json nad use it in threejs?
I want to be able to export Layer Names and properties from Sketch to JSON format. I think I can figure out how to pull the info I need from Sketch, but I haven't started to code anything, because I haven't been able to find any info about this export issue.
I'm wondering if anyone can help confirm that Sketch can only export their supported formats or if export to JSON is possible. I don't want to dive into this project only to find out that I can't end up with a JSON file.
I have been trying to work with this as well, and it turns out there are a few ways to get access to a JSON file in sketch.
use the npm package sketch2json
Turns out that if you unzip the .sketch file, there is a JSON file hiding inside.
unzip sketch-header.sketch
This creates a folder called 'pages' with the .json file inside. To get the 'Layer Names', you can just read/serialize the .json file into a string, and then the path to collect the layer names is
const obj = JSON.parse(fileString);
object.layers.forEach((layer) => {
console.log(layer.name);
});
If you rename the .sketch extension file to .zip extension file you will see as many JSON files as pages your sketch document has inside a folder called "Pages". Also some BMP previews images and other JSON related to user and document information.
I guess not much people need to import three.js json file to Blender, but I lost my original Blender file and want to recreate it from json that I exported earlier.
Latest three.js git only has exporter and no importer.
I tried using old json importer (from this link https://github.com/Bangybug/three.js/tree/master/utils/exporters/blender/2.71/scripts/addons/io_mesh_threejs) but it does not load back UV maps, only model and textures, so I wonder if there is some importer that could do this?
Unfortunately, there currently is no working importer to get three.js models into blender. You could try to load the object in three.js and then export it using the THREE.OBJExporter(). You might have a good chance to import that resulting obj-file into blender.
I would like to import JSON(made by three.js) data into Maya.
I found exporter of Maya, but couldn't find importer of Maya.
Is there good way to do it?
There are currently no Three.js JSON importer.
The Three.js JSON is meant to be a runtime format, used by Three.js for rendering in WebGL. Usually, you would export to the JSON format when you want to use it for the web. It is not meant to be a storage format.
There are other more common "interchange" formats like FBX, Collada, or OBJ, that are meant to be for storage and for passing around between different people and software packages.
How to export FBX three.js format file?
I found references on the internet showing how an FBX file is converted to three.js, but I can't find how a JSON three.js file is converted to FBX files?
At the moment, there are no exporters for the .FBX file format from a three.js json scene format. You can export to stl or obj. To see some examples of exporters, take a look at the examples in the dev branch. There you can find a folder for exporters: https://github.com/mrdoob/three.js/tree/dev/examples/js/exporters
At the moment, there is a pull request to add FBX loading, but no exporting.
Edit: For completion, a few more links:
FBX SDK Python - Might be helpful in case you want to learn about what is possible with the python bindings for fbx
Three.js Converters - Discusses a python conversion tool to the Three.js format. Might be able to reverse engineer this tool to convert Three.js to FBX.