Is there a way to add operating independent paths to the global settings file that I save

Issue #1621 invalid
Joe Morris @ FAST Animation Studio Toolz created an issue

I just wondered if the way you parse the dot J S O N files would allow this...

If not can you give me code snippet that will show me how to set a global settings path in code… Namely the directory paths

Comments (4)

  1. Thomas Larsson repo owner

    This is not documented and not really intended to be used externally, but anyway. The content directories are kept in the list GS.contentDirs defined in settings.py. To add a directory,

    from import_daz import GS
    mydir = "C:/home"
    GS.contentDirs.append(mydir)
    

    You will find the other global settings in the same dict GS. But be aware that they can be changed at any time.

  2. Joe Morris @ FAST Animation Studio Toolz reporter

    Thank you so much for providing this this API is so fun…OK so I'll just read the file and test to see if the variables there in a conditional 🤔and then add it like you suggested!

  3. Log in to comment