Help on how to Migrate textures from one folder to another in DazStudio?

Does anyone knows if there is a way to migrate textures from one folder to another in DazStudio, without having to do it manually one by one?

Thanks

Comments

  • Richard HaseltineRichard Haseltine Posts: 108,047

    What exactly are you wanting to do? Change content directories (no need to do anything other than move the files to the same relative location in the new content directory)? Or move the image files to a new location within the content directory (or move them into a content directory from an external location) and update the presets?

  • whitemaguswhitemagus Posts: 71

    No, Let me explain better:

    I have some materials shaders done in the content library and the image textures of this materials are in the runtime folder (Linda01), what I would like to do is, keep the same materials shaders, but point the image textures to runtime folder(Jonh01). 

    Then I can make changes in the shaders, and move and rename inside the content library, but the important is to have them pointing to the new folder(Jonh01).

    Is there a way to do this quickly?

     

  • Richard HaseltineRichard Haseltine Posts: 108,047

    So this is /Runtime/textures/Linda01/ and /Runtime/textures/John01/? If you save the presets uncompressed, or decompress them with the batch Convert pane in DS or using an archive tool such as 7Zip, then you can do a search-and-replace across all the pesets with a suitable text editor.

  • whitemaguswhitemagus Posts: 71

    Sorry Richard, I dont understand, I upload an image showing what I want to do.

    I dont understand why all those steps you mentioned, I just wan to change the name of the textures folder, and point the materials to the new folder.

    Daz-folders-issue-1.jpg
    2560 x 1440 - 613K
  • Richard HaseltineRichard Haseltine Posts: 108,047

    There isn't a way to update paths like that in the UI (it could be scripted fairly easily, I'll add it to my long list) so the quickest way is to treat the ,duf files as text files and use search and replace.

  • whitemaguswhitemagus Posts: 71

    So the only way is to go into the code, find where the paths are and replace them. ok now I understand all those steps, do you recomend any text editor for that task?

     

  • LeanaLeana Posts: 12,757

    So the only way is to go into the code, find where the paths are and replace them. ok now I understand all those steps, do you recomend any text editor for that task?

    I use notepad++, it's free and works well IMO.

  • whitemaguswhitemagus Posts: 71
    Leana said:

    So the only way is to go into the code, find where the paths are and replace them. ok now I understand all those steps, do you recomend any text editor for that task?

    I use notepad++, it's free and works well IMO.

    Thanks, Leana.

  • Syrus_DanteSyrus_Dante Posts: 983

    I think a script like that Richard suggested already exists.

    mcjAltTex

    Never tried it but it looks simple you choose another texture path and the script does the rest if the texture files found in the other path are named the same.

  • whitemaguswhitemagus Posts: 71

    I think a script like that Richard suggested already exists.

    mcjAltTex

    Never tried it but it looks simple you choose another texture path and the script does the rest if the texture files found in the other path are named the same.

    Thanks, I have already done it with notepad++, I will try it next time...

Sign In or Register to comment.