[Closed] Thumbnail viewer control
Hey guys,
I made a thumbnail viewer for a tool I was working on and thought you guys might be interested. [More info on how to use it here!]( http://www.jasonlabbe3d.com/Pages/Scripts/thumbnailViewerControl.html)
Hope it helps out!
Jason
Jason,
Excellent script. I’ll try it out at the office Monday! Thanks for your hard work.
Awesome Stuff as always Jason.
Are you sure there’s not a game hidden in there anywhere?
Brilliant! Works on 3dsmax 9 if you remove the @ from the line maindir = …
Thanks a lot for this I was about to write my own and this is much better than the one I had started.
Only one slight critism/suggestion, you can’t use your mouse wheel to scroll up and down.
Thanks guys, let me know if you end up using it!
Only one slight critism/suggestion, you can’t use your mouse wheel to scroll up and down.
Might be because it’s not focusing on the panel that actually has the scroll bar. I’ll see if I can do anything about it!
Are you sure there’s not a game hidden in there anywhere?
Maybe I can make it into a breakout game with the thumbnails as blocks… Don’t tempt me
EDIT: I also added the source code on my site for reference. I’m by no means a c# expert, but might help!
Found a small bug…
You know when you get an email from a Apple Mac with a jpeg and you get 2 files, one that windows will open and a small file it can’t, if you have one of those in your folder it will cause a runtine exception.
So possibly worth including a line to check the .jpg file is valid before thumbnailing.
It’s also quite slow on my machine, 35secs to initialize 195 items, would be better if it worked like windows does where it populates the table with all the jpegs but not with the thumbnails and then populates the thumbnails one by one focussing on the ones currently in view.
You know when you get an email from a Apple Mac with a jpeg and you get 2 files, one that windows will open and a small file it can’t, if you have one of those in your folder it will cause a runtine exception.
So possibly worth including a line to check the .jpg file is valid before thumbnailing.
Not sure what you’re talking about here. Is there some way I can reproduce it?
It’s also quite slow on my machine, 35secs to initialize 195 items, would be better if it worked like windows does where it populates the table with all the jpegs but not with the thumbnails and then populates the thumbnails one by one focussing on the ones currently in view.
I was able to populate 1000 items within a couple of seconds, but they were small images. Are you trying to use any big ones? Also, are you populating the items with the addRange or addItem method? AddItem should actually be removed all together since addRange is much faster.
Thanks for the bug report
Hi Jason,
I’m also trying to use these controls in yet another asset browser. I prefer your thumbnailviewer over the others (hitchhiker and kameleon) because I can determine which files I want to show. It doesn’t need to be the contents of a specific folder. This offers great advantages because I want to organize my assets in other ways than just in a hierarchy.
I’ve tried your example and it works, however I’ve got a few questions:
First: how do I clear the thumbnailviewer? There is no .clear() method. And when I remove all items 1 by 1, I get an error on the last item. After that, the control doesn’t really work as expected anymore. Am I missing something obvious?
for i = (control.getItemsCount()-1) to 0 by -1 do control.removeItem i--creates an error on the last item
Secondly I noticed the thumbnailItem-object doesn’t display images with uppercase extensions. I’ve checked it on max 2008 and 2010 (32 bit). It displays the thumbnailItem-object but not the image in it. Can you confirm this?
Besides these things, the controls work fast. I was struggling with thumbnails in a listview and Virtualmode. But if I can get your controls working it’s much easier!
Klaas