How to export selected objects using three.js exporter
To export multiple objects please check the answer made by @poor found here very helpful and useful and you can edit the script to fit your needs.