[Closed] Thumbnail view multiple folders
I want to edit a thumbnail script so that I can open multiple locations.
Anyone have any idea what im doing wrong. All I get is thumbnails displayed as U, N, D, E, F, I, N, E, D, ., J, P, G
I’ve thrown the thumbnail script into a function.
function thmbviewer ThmbDir =
(
try(destroyDialog dialog_thumbnailViewer)catch()
thumbnailViewerDll = ( (getDir #maxRoot) + "thumbnailViewer.dll") -- Point this path to where you placed the .dll file
if (doesFileExist thumbnailViewerDll) do
(
dotNet.loadAssembly thumbnailViewerDll -- Load assembly before creating control
rollout dialog_thumbnailViewer "Thumbnail Viewer Example"
(
on killthmbview pressed do
(
destroydialog dialog_thumbnailViewer
)
dotNetControl thumbnailViewer "maxCustomControl.thumbnailViewer" height:450 width:750 align:#center
on dialog_thumbnailViewer open do
(
thumbnailViewer.setItemsPerRow 5
-- Get images
local ThmbDir-- Set this to a directory to where you want to get images from
imageFiles = ((ThmbDir as string) + "*.jpg") --"/*" + "*.jpg")
-- Add thumbItems
thumbItems = #()
for x in 1 to imageFiles.count do
(
-- Create thumbnailItem and set its properties
thumbItem = dotNetObject "maxCustomControl.thumbnailItem"
thumbItem.setFilepath imageFiles[x]
fileNameOnly = (getFileNameFile imageFiles[x])
thumbItem.setLabel fileNameOnly
-- thumbItem.setToolTip fileNameOnly
-- thumbItem.setBackColor2 ( (dotNetClass "System.Drawing.Color").fromArgb 150 150 150 )--(random 100 255) (random 100 255) (random 100 255))
append thumbItems thumbItem
)
thumbnailViewer.addRange thumbItems
)
button killthmbview "CLOSE WINDOW" width:400
)
createDialog dialog_thumbnailViewer 800 500
)
)
rollout textmap "Textures" width:500 height:400
(
button thmb1 "VIEW THUMBNAILS 1" pos:[50,70] width:150 height:25
button thmb2 "VIEW THUMBNAILS 2" pos:[50,175] width:150 height:25
on thmb1 pressed do
(
thmbviewer @"insert_folder_dir"
)
on thmb2 pressed do
(
thmbviewer @"insert_folder_dir"
)
)
To test it you need to change [insert_folder_dir] with a location on your hd
and you will need to copy this attached .dll file to your maxroot.
whose this thumbnail viewer is? why do i have to trust and put it in my system?
Relax mate, I have no idea where I got this script from, i downloaded it a looooooooooooong time ago. Im just edit it for MYSELF. if i knew who its from I would be happy to tell you.
So yeah, I dont know what I have to do to proof to you that this dll file is safe. I guess you will need to take a risk.
But you are right my message looks like im going to scan your HD for porn or something.
so your original question has to sound like – can anyone help me to debug someone’s else dll which i took don’t remember where and without its source code?
hahaha…
these are first ten topics that Google gave me for my search “thumbnailviewer.dll” –
ThumbnailViewer.dll problems on win 7 64bit – Autodesk …
How to Fix ThumbnailViewer.dll Error – PC Max Utilities
How To Fix Thumbnailviewer.dll is Missing / Not Found Error
How to fix thumbnailviewer.dll process ? And remove a …
How to fix ThumbnailViewer.dll error? – FixErrorKit.com
What’s ThumbnailViewer.dll? How to Fix ThumbnailViewer.dll error?
Fix thumbnailviewer.dll Error – Missing .dll Files
Here let you know what is thumbnailviewer.dll, how to remove or fix thumbnailviewer.dll errors.
Repair Thumbnailviewer.dll Missing or Corrupted Error
How to Fix thumbnail.dll Errors
I think I remember this dll, someone on this forum made it circa 2009-2010.
Anyways, your issues have nothing to do with the viewer, you’re simply not getting any files from any location.
Denis T, please grow up. I was simply asking for some help. Or is this not the right place to ask for help?
And im not asking to edit a DLL but a way to fix the script getting images from the location.
Please read my first post again. I dont understand where all this hate is coming from.
i can grow stout only…
but you are a kid and could take a chance to learn something for free… and being not lazy you could search this forum and find my thread about how to make picture thumbnail .net control.
debugging anyone’s else dll leave for yourself.
So Dennis it is why so easily swear at sb or treat them as a inferior person you consider yourself as a mentor who is allowed to do anything with the student,what should i call you now.
let me remind you st if you look at this page ( http://forums.cgsociety.org/showthread.php?t=1215605 ) ,you swear at me remember ,in return i just call you a …,where was you politeness or attitude ,when swear at someone and to correct your mistake you just delete your comment , what should we call you then.
Dennis please You don’t talk about manner or sth like this, i think you are one of the rudest person in this site, and i think “S-Ilario” is right time to grow up accept your weak point and correct them just like us we accept our weak point in maxscript and ask , and you i think you easily get angry,judge on people,view others just like they don’t know anything… i don’t want to say sth this guy loosing to get answer from you, so …