Enable editor in custom project

How can i intialise the threejs editor in a custom project ?

I have a project with rollup and npm for example, and I create a scene with some code and import a gltf.

Is it possible to inspect that scene by enabling the editor?

You have to export your scene to the three.js JSON format (via scene.toJSON()) and then import it into the editor. Opening the editor “in-place” in arbitrary three.js applications is not possible.


This is actually useful, thanks.

I think that toJson() function could be passed to an existing threejs inspector.

So while you start your project, you also have an editor host running, which can take output from scene.toJSON().

So basically you would be able to run the editor “in-place” in arbitrary threejs applications