Removing unused textures - DS
Eva1
Posts: 1,249
Hi, does anyone know how to remove a list of unused textures in DS - I have a scene where I had a number of different objects which I've now deleted, but the textures are still showing up in the list from the Diffuse Color drop down under Surfaces -it means that it's taking ages to optimize images when trying to render. I though I'd seen this questions asked somewhere before in the forums but can't find anything.
Any help would be appreciated:)
Comments
I've been told though I haven't had the opportunity to verify it that my Clear Undo Stack script is working again in DS4. A cursory review and it seems like it is working to me.
Original Thread: http://forumarchive.daz3d.com/viewtopic.php?t=143150
Direct Download http://daz.tall-tales-racing.com/resources/ClearUndoStack.zip
I can vouch for the Clear Undo Stack plugin working in DS45 and clearing unused textures.
Only time it doesn't is if tdlmake.exe is optimizing them but once its done you can hit the clear undo and you're good.
Thanks for the replies:) I'm using v4.0 and remembered that textures seem to carry over from previous scenes9 - I forgot that they clear if you shut down and then restart DS.
Eva, that's what I used to do before the script Adam mentioned. I find it invaluable especially when I'm doing texture work.
Where would I find the script, and how do you use it?
Adam linked it above.
Load it into DS under My Library/Scripts
When you goto your content library, find it under scripts, select the script and right click. Select Create Custom Action.
You will then find it in your pull down menu and you can access it at will at that point.
Thank you!! :-)
Thanks! The Script is still working in 4.9 to remove unused maps! So cool! Thanks a lot!
I can't wait to get into studio to try this! thanks
Is there still some place where I can get that script please? :)
There is a direct link in the second post in this thread.
Dang. Earlier it wouldn't work Oo.
Is there any other place where to find the script?
Sadly the link is dead in the water :(
You can find the script here: https://www.daz3d.com/forums/discussion/458416/daz-studio-rendering-slows-down-after-multiple-renders
I am not sure, if it works, since I had no time to try it out yet
Is this not what the included "Purge Memory" script does? (Scripts\Utilities\Purge Memory.dsa)
Yes, it is.
If the textures are not used by anything in the scene, save scene, close DS, open DS and open the saved scene.
Well, that's what we've done all these years, and it's far from ideal.
A decade passed, nearly nothing changed...
I bring numerous objects into my Daz scene as possible props, then delete many/most of them when they don’t pan out. Which means I quickly get a l-o-n-g list of images to browse through when I right-click on an image in the Surfaces tab (Base Color, f’rinstance). I’ve attached an image of this imposing list, which trails off-screen to the right.
Any way I can clean this list out? I’ve followed the links in this thread, with no luck. Also have clicked on Purge Memory script several times, quit Daz Studio, and restarted Mac. Thanks in advance.
If you've shut down Daz Studio and restarted it, all the unused textures have been cleaned out, which means all the textures remaining in the list are used by something in the scene.
Saving the scene also works.
Thanks for the info, Zicon. I imported a couple objects into a new Daz scene as a test, then deleted one, saved the Daz scene, quit Daz, and reopened the scene. Voilà, unused images gone from list!
I realize I'm asking a lot here, but is it possible to find out where an image is used in the Daz scene (what object it's attached to), as in the Adobe After Effects "Reveal in Composition" function?
Thanks again for your answer.
You don't have to close / relaunch DS, just use the Purge Memory Script ( in the folder: Scripts\Utilities\Purge Memory.dsa), to clear unused texture maps... then they'll be gone from the LIST.
It can be done via script (Scene Optimiser does it, in fact) - there should be a sample posted fairly soon showing how.
This info helps!
Question about the Purge Memory.dsa script: I can find it in the My DAZ Library>Scripts>Utilities folder, but it doesn’t show in the Scripts, Utilities, or Unassigned folders in the Smart Content tab. Shouldn’t I be able to access it there? I’ve got My DAZ Library on an external drive, but Daz Studio can find all my other content on that drive.
In order for a file to appear in Smart Content it needs to have a cateogry, a type and a compatibity. Files you install manaually will not, by default, have any of those - however, if you drag them from the Content Library pane into the desired category in Smart Content that will add the category and prompt you for the type and compatibilities.
Purge Memory script belongs to the product "Default Resources for DAZ Studio", you can find it in Smart Content.. but better create a custom action to add it to Scripts or Favorates menu item, and add to Toolbar as well.
Richard Haseltine and crosswind, thank you both.