How could I copy terrain from runtime and paste it back into studio

I currently have a cave generation system in my game that makes holes in a 500x1000x500 area ( in runtime) , I want to copy those caves that it generates and paste them back into studio outside of runtime so its permanently saved. I tried copying the material and occupancy for each voxel buts its like 2000 lines long. You also cant import the terrain as a file or copy it during runtime and paste it back in studio. I dont want to have to manually paint in caves that big so if anyone has ideas please help. Thanks!

you can use this plugin (maybe)

OP should just paste his script inside the studio command bar thing, which will do the exact same thing as it does in runtime, but its task will be saved in studio instead of being removed when ending a test. (as long as I’m not misreading or misunderstanding something)

Though, this plugin can still be used and is a great tool for moving terrain from one place to another, though in my experience it will crash whenever you try and load huge amounts of terrain at once, so id recommend anyone who uses this to load chunks at a time, id suggest max 1000x1000x1000 at a time.