Hi,
Is there a way to retrieve or compute the preview to image file for all scene/page of the current model ?
Regards.
Hi,
Is there a way to retrieve or compute the preview to image file for all scene/page of the current model ?
Regards.
I donāt think page thumbnails are available in the Ruby API directly.
My ideas:
Go and iterate through the pages and after make it selected use the View #write_image method to write the current view to an image file with a desired āqualityā.
( Before iteration ābackupā Sketchup.active_model.options ["Page Options"] ["Show Transition"]
, set to false and then restore after iterationā¦)
The current .skp files (since SU2020 ??) is actually a zip files. Where there is a folder scene_thumbnails
for storing this small images. You can probably get out of this. (I have no experience with thatā¦)
Thereās currently no API access to these thumbnails. Log a feature request if you like: Issues Ā· SketchUp/api-issue-tracker Ā· GitHub
Ok, thanks !