I’m wondering if there’s a method to save out and then re-build a scene (cameras, lights, etc). Lets say you were to load up a scene with a couple of cameras, a few lights, and a few meshes. And then you moved everything around a bit - and want to save the new state.
How would you export out all of the properties of the elements - and then load them back up again?
I’m currently saving out key properties and then re-creating the elements one by one - very manually. For lights, for example, I save out position, rotation, intensity, exponent, color, etc. And then re-build the light using that data.
But it occurred to me that there’s got to be an easier way? Are there functions to support this kind of behavior? Can i simply save scene.cameras, for example, and then somehow re-create the cameras with that json object?