Removing unused textures - DS

Eva1Eva1 Posts: 1,249
edited December 1969 in Daz Studio Discussion

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

  • adamr001adamr001 Posts: 1,322
    edited December 1969

    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

  • MattymanxMattymanx Posts: 6,902
    edited December 1969

    adamr001 said:
    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.

  • Eva1Eva1 Posts: 1,249
    edited December 1969

    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.

  • wancowwancow Posts: 2,708
    edited December 1969

    Eva, that's what I used to do before the script Adam mentioned. I find it invaluable especially when I'm doing texture work.

  • Eva1Eva1 Posts: 1,249
    edited December 1969

    Where would I find the script, and how do you use it?

  • wancowwancow Posts: 2,708
    edited December 1969

    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.

  • Eva1Eva1 Posts: 1,249
    edited December 1969

    Thank you!! :-)

  • ToleroTolero Posts: 34

    Thanks! The Script is still working in 4.9 to remove unused maps! So cool! Thanks a lot!

  • twitchewtwitchew Posts: 123

    I can't wait to get into studio to try this! thanks

     

  • Is there still some place where I can get that script please? :)

  • barbultbarbult Posts: 24,240

    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.

  • barbult said:

    Is there still some place where I can get that script please? :)

    There is a direct link in the second post in this thread.

    Is there any other place where to find the script?
    Sadly the link is dead in the water :(

  • KarenKaren Posts: 93

    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

  • NorthOf45NorthOf45 Posts: 5,480

    Is this not what the included "Purge Memory" script does? (Scripts\Utilities\Purge Memory.dsa)

  • crosswindcrosswind Posts: 6,915

    NorthOf45 said:

    Is this not what the included "Purge Memory" script does? (Scripts\Utilities\Purge Memory.dsa)

    Yes, it is.

  • PerttiAPerttiA Posts: 10,024

    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.

     

  • crosswindcrosswind Posts: 6,915

    A decade passed, nearly nothing changed...

  • tubbesingtubbesing Posts: 48
    edited February 15

    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.

     

    tubbesing.jpg
    1600 x 900 - 664K
    Post edited by tubbesing on
  • ZiconZicon Posts: 309

    tubbesing said:

    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.

  • DartanbeckDartanbeck Posts: 21,549

    Eva1 said:

    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.

    Saving the scene also works.

  • tubbesingtubbesing Posts: 48
    edited February 16

    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.

    Post edited by tubbesing on
  • crosswindcrosswind Posts: 6,915

    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.

  • tubbesing said:

    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?

    It can be done via script (Scene Optimiser does it, in fact) - there should be a sample posted fairly soon showing how.

    Thanks again for your answer.

  • 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.

  • crosswindcrosswind Posts: 6,915

    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.

    SNAG-2024-2-19-0008.png
    496 x 1302 - 72K
  • Richard Haseltine and crosswind, thank you both.

Sign In or Register to comment.