New root path setting function duplicate and add many Daz Connect paths.

Issue #155 resolved
engetudouiti created an issue

I test “ auto-set file path” by import json. I think it seems work, but make duplicate paths in setting panell.

And it seems add individual daz connect product directories, like my pic.

(I have downloaded and installed a few daz connect items, then it usually make data directory for each products.,

If you do not download Daz Connect items , it may not happen. )

Then is there way to clean up or manually set without use Auto root path setting? I hope manually clean up when I need?

Comments (9)

  1. engetudouiti reporter

    Hm,, I check the “import-daz-paths.json”

    which I export from DS , by new setting script. It is like this

    {
        "application": "setup_daz_importer_paths",
        "version": 0.1,
        "content": [
            "I:/myfile/dazstudio4/Mylibrary",
            "I:/myfile/dazstudio4/TKlibrary",
            "I:/myfile/dazstudio4/Rendlibrary",
            "I:/myfile/dazstudio4/WIFproduct",
            "I:/myfile/dazstudio4/Rend2library"
        ],
        "builtin_mdl": [
            "C:/Program Files/DAZ 3D/DAZStudio4/shaders/iray",
            "C:/Users/TAKE/AppData/Roaming/DAZ 3D/Studio4/shaders/iray",
            "C:/Users/TAKE/AppData/Roaming/DAZ 3D/Studio4/temp/shaders/iray"
        ],
        "import_dirs": [
            "I:/myfile/dazstudio4/Mylibrary"
        ],
        "mdl_dirs": [
            "I:/myfile/dazstudio4/iraymdltest",
            "C:/Program Files/DAZ 3D/DAZStudio4/shaders/iray/TKmdl"
        ],
        "builtin_content" : ["C:/ProgramData/DAZ 3D/Studio4/DAZ Built-in Content"],
        "cloud_content" : ["I:/myfile/dazstudio4/DAZconnect"]
    }
    

    I suppose the import_dirs is non daz format directory, to check from DS (like obj, FBX etc). Then actually I set same dir as root dir, to check from DS content manager.

    I do not know why, cloud_content dir are shown by each package data paths in blender setting panell only. (I have not set those path before)

    I suppose script try to serch “data” path to find root,, but each daz connect package may include data path when you download those. then locate in main data directory. so it may happen.

  2. engetudouiti reporter

    Then I think there seems only meta files, Other foda are empty about those DAZ connect items.. I feel If I clean up those empty directiory this problem may not happen,, but I can find meta file for daz connect prodcut package, I remember, DAZ cms often cause trouble for me, when I tweak mach (data-base) ^^; so I do not know, if I can clean up manually,,

  3. engetudouiti reporter

    Yes new commit seems make paths UI more clean. Thanks.

    Then do you know why my daz connect library still show individual product data directory? (at current there are only meta files for smart content),

    And hope to know, correct code to get Content directory paths (gloval varialbes) which you set as DazPaths before,

    by python (from other file) if I can..

  4. engetudouiti reporter

    I tried re-export with recent version daz scripts (name have been changed), then re-import again.

    It is strange for me,, because, exported (from DS) path,json (import-daz-paths.json)

    discribe Cloud path as

    "cloud_content" : "I:/myfile/dazstudio4/DAZconnect"

    So I expect, this path will be appeared when I improt the json. but even though I re-install the daz-paths.json, it still show each package directories, but not show the cloud_content path.

    I feel, js seems correctly set Daz Connect path. (so exported js show the path correctly),

    but when import the json to blender, and edit strings, some unnecessary steps happen. (or I do not know, if actually these path is right to load contents,.. I suppose, if I use Daz Connect and download items, it need to set each product data paths, to read files correctly.

    Anyway,,, at current I have no daz connect items (no download real files, and no connect) , so I do not care much.

  5. Thomas Larsson repo owner

    In the DAz files, urls are stored as paths relative to the root directories. So to find the global path, the plugin tries to combine one of the root directories with the relative path. Since the individual cloud directories have the same directory structure as the content directories, they are the correct root paths.

    But if you know that there is no interesting content in your cloud directories, I could add an option not to load them.

  6. Thomas Larsson repo owner

    The Load Root Paths button now has options to turn off the loading of certain types of directories. This is mainly useful to turn off all cloud directories if you know that you never use any of them.

  7. engetudouiti reporter

    Yes I see, I have not test about cloud contents with this plug in, so I do not know how I can use it with this blender plug in, but I think it only happen, when user try to download Cloud contents to keep in their PC hard drive. So, thanks you add new option. I may test when I download another colud contents, But at current I may need not those paths. 😀

  8. Log in to comment