Request: Thumbnail with export

Next
 From:  RHolmes (RICOHOLMES)
8190.1 
Hello!
Still loving MOI on a daily basis year after year :) I have a wee request, only if it's a trivial matter to implement:

Could we have an option to save a snapshot with the export file when exporting?

When exporting tons of objects to a library (cad stuff to be rendered in Maya) it's a royal bummer to try and remember what everything was based on filenames, no matter how well named they are. There is the snapshot feature (Can't remember if that's built in or a script right now) but again that requires remembering what you just saved, finding the snapshot folder, finding the destination folder etc. Human error and laziness screw me over more often than I'd like to confess.

Automatically saving a snapshot thumb with the obj (fbx, whatever) and identical name would be a godsend.

?

Just a teensyweensy wishypoo
/RH :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8190.2 In reply to 8190.1 
Hi Rico, check this previous thread for how to modify the regular Save command to also save a screenshot image:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7998.1

You should also be able to do the same thing to the Export.js command script as well.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  RHolmes (RICOHOLMES)
8190.3 
Ah that looks very promising. Thank you!

I'll pretend to be a boffin now and try to work out this scripting thing.

Sorry I missed that post, much appreciated :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  RHolmes (RICOHOLMES)
8190.4 In reply to 8190.3 
Well that was all jolly clever. Works for Save as, thank you !

Not for Export here, which seems a little more convoluted (I have the programming skills of your average spoon) but I can see it's promising.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marc (TELLIER)
8190.5 
Hi,

Thumbnails directly on file would also be very useful.
For example when searching for syringe 3dm files in a folder and 19 comes up, I have to open each one to find the right one.

I know it makes the file size goes up, but it could be an option to generate them or not.
Dont know how much work it is to implement it though.

Marc
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  RHolmes (RICOHOLMES)
8190.6 
Embarrassing as it is, I'm afraid I failed completely with the export version of the .js command.

In fact, I managed to bugger up my export complete in the process. Yay for programmming incompetence! Would anyone be kind enough to explain that one ? ( i KNOW! I just sound like a useless lump at this point :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8190.7 In reply to 8190.6 
Hi Rico, can you please attach your Save.js file that does work and your Export.js file that does not work anymore so I can take a look?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8190.8 In reply to 8190.5 
Hi Marc, the tricky part about the .3DM built in thumbnails is not so much about generating them in the file, it's that the operating system does not natively know how to access the thumbnail to display it, I also have to write some additional plug-ins for the operating system that can give it the image from a filename. This has to be done separately for both Windows and Mac and it will take some studying to figure out how that's done for each platform and figure out how it's supposed to be installed. It's this extra chunk of work that adds up to some more time involved.

The file size does also go up, not by much something like 100 or 200k but it does mean that something with a few curves in it will not be just an 8k file anymore.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  RHolmes (RICOHOLMES)
8190.9 In reply to 8190.7 
Thank you Michael.
Please don't laugh.. it made sense to me ;)
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8190.10 In reply to 8190.9 
Hi Rico, no problem - the issue is the script code was getting the image filename from the current model filename, which gets set when doing a "SaveAs" but not with "Export".

Also I ran into a problem where the file dialog could get captured in the screenshot as well. Please try the attached versions and see if these work ok for you.

- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  RHolmes (RICOHOLMES)
8190.11 In reply to 8190.10 
Ohh Micheal, thank you for taking the time! I can only imagine how busy you are.
Happy to say it's working perfectly, and already I can see how much frustration that's going to save. Much, much appreciated.

Thank you again,
- a very happy Rico :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
8190.12 In reply to 8190.11 
You're welcome Rico, I'm glad that will help you!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All