Forum

Author Topic: Preview image for project  (Read 8943 times)

metaman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Preview image for project
« on: December 04, 2023, 01:07:59 AM »
Hello!

I have a lot of little test projects and after a while, I get a folder with say,.. 50
old tests, and it is sometimes hard to remember what they all contain. So apart
from documenting this in a readme file, lately I find myself saving screenshots
from the model. It would be nice if one could click on such an image, and then
open up metashape with the corresponding model. Probably in linux i could
make some script to do this but maybe it would be a nice feature to have
in some form..

thnx

metaman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Preview image for project
« Reply #1 on: December 04, 2023, 02:34:08 AM »
ah yes its really convenient: I made a screenshot for all of my projects called 'myproject.psx.jpg',
then added a custom action to thunar filemanager that shows up for this file extension, and that
calls a simple script 'openmetashapeproject':

#!/usr/bin/perl
#
# openmetashapeproject /b/tmp/1/r6ces20mm.psx.jpg
#
$f=$ARGV[0];
$f=~s/.jpg//;
if (-e $f) {
   `metashape $f`;
}

Now in thunar I see a gallery of all projects and I can open one, almost by just clicking on it...