Shopify / screenshot-glb

A command line utility for taking screenshots of glTF 2.0 Binary 3D model files
121 stars 28 forks source link

Prepare arguments for capture screenshot asynchronously #86

Closed mikkoh closed 2 years ago

mikkoh commented 2 years ago

Currently the modelviewerUrl is being prepared in captureScreenshot. I'd like to move this logic into prepareAppOptions.

To me this makes sense since the model_viewer_version passed via argv is used to determine the modelviewerUrl.

In the next PR I'd like to make it so you can pass a local path to a model-viewer.js file which can then be used to prepare screenshots.