create a content thumbnail to open a readme file or image

srieschsriesch Posts: 4,243
edited October 2016 in Daz Studio Discussion

What is the best way to create a content thumbnail to open a readme file or image?

I know how to create a menu option to open a text file, but I forget how to do the same thing in the form of a content thumbnail.

I haven't tried doing the same thing with an image to see if that's supported or not, but there's a twist, I would like to have the image open with a non-default application.  I have Gimp as my default image editor, but it's horribly slow to start so I usually right-click and open with windows photo viewer or something if I don't actually plan to edit the image.  Not sure if/how that could be done in this case.  the image is basically a tutorial, so I can't just hover over it in the content library to read it as the text would be far too small to see.  Of course I can always just retype it as text, but the associated images are helpful.

I have also never experimented with the "other import formats" type of content in the Content Directory Manager, I have no idea what that does, does that come into play here or not?

Post edited by sriesch on

Comments

  • LindseyLindsey Posts: 2,008

    BlackFeather1973 posted a File Launcher Freebie:  http://www.daz3d.com/forums/viewthread/41130/   . 

  • srieschsriesch Posts: 4,243

    Thanks!  

    I copied that script and modified it to process other file types such as a .jpg, and I see of course I will need to be careful where I run the script so as not to generate extraneous files (I just copied my test files into an empty mapped folder), and remember to move them if necessary depending on how you do installs and backups.  It in turn generates the content thumbnail script(s), except that as designed it only works when you run it from within the DAZ Studio Formats part of the content library and doesn't work when you categorize it along with the rest of your content since it's determining the path based on that.  I need to sit down and learn how to do scripting so I can modify that.  As a temporary workaround I ended up just using it as an example and manually creating a text file with the extension .dsa, placed in any mapped DAZ Studio content folder, with the following line: 

    App.showURL("file:///C:/sean/3D graphics/objects/Tofusan Replicator for DAZ Studio/readme doc00.jpg");

    It works great temporarily for now but obviously the hardcoded path will break if I ever move or rename drives or folders, so I really must learn to do it the correct way, whatever that may turn out to be.

     

     

Sign In or Register to comment.