Increasing number of "Open Recent" (files) entries

Hello All,

I am not sure if this belongs here or not as it has to do with the inner workings of Daz Studio.  But I was wonder if the "Open Recent" (files), under the File tab on the menu bar, can be increased from the 10 last files open to something more.   Could this be even doubled or tripled?    I know there is a work around to just create a folder for recent projects in my main Daz directory, but it is just easier to open the progam and look at the list of recently used files.   However, if this is a user adjustable item, I would like to know how to do it.

Thank you,

Geo

Comments

  • http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz

    (function(){
        
        var oContentMgr = App.getContentMgr();
        oContentMgr.maxRecentFiles = 20;
        
    })();

  • jukingeojukingeo Posts: 711

    Cris Palomino said:

    http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/contentmgr_dz

    (function(){
        
        var oContentMgr = App.getContentMgr();
        oContentMgr.maxRecentFiles = 20;
        
    })();

     

    Hello, thank you for responding, however, I don't know where to find this.  You left that part out.   Can you provide a detailed explanation of where to locate this and  how to make the changes?

     

    Thank you,

    Geo

  • Just paste it, with the 20 chnaged to the value you want, into the ScriptIDE pane and use the pane's own File menu to save it (or paste it into a text editor and save as a .dsa file) - if you place the script in a content directory, most logically in /Scripts/Utilities/, you can right-click on it to create a Custom Action which will then be added to the Scripts menu for easy access.

  • jukingeojukingeo Posts: 711

    Richard Haseltine said:

    Just paste it, with the 20 chnaged to the value you want, into the ScriptIDE pane and use the pane's own File menu to save it (or paste it into a text editor and save as a .dsa file) - if you place the script in a content directory, most logically in /Scripts/Utilities/, you can right-click on it to create a Custom Action which will then be added to the Scripts menu for easy access.

    Okay, I have found the ScriptIDE pane and did as you said.  Now came the problem with saving it.  Upon doing so, I get an error saying that I need administrator permissions to save it, so instead I just executed the script right within ScriptIDE (changing the 20 to 40)   So that worked!  However, my excitment was short lived as after I reopened Daz when closing it out, it was back to the default 10 files.  So that kind of defeats the whole purpose.    Is there a way to find the file where that is stored and just physically edit it so that way whenever I close out of Daz and open it back up again,  the number I set it to is saved and that I can view the last 40 (or so) recent files?

    Thanks,

    Geo

  • It may have been trying to save to the application folder - unfortunately DS does do that with some file types if the previous save location is missing or undefined. Use the file dialogue to go to YourContentLibrary/Scripts/Utilities/ and save it there - e.g. Documents/Daz 3D/Studio/My Library/Scripts/utilities/Set Recent Documents.dsa.

  • jukingeojukingeo Posts: 711

    Richard Haseltine said:

    It may have been trying to save to the application folder - unfortunately DS does do that with some file types if the previous save location is missing or undefined. Use the file dialogue to go to YourContentLibrary/Scripts/Utilities/ and save it there - e.g. Documents/Daz 3D/Studio/My Library/Scripts/utilities/Set Recent Documents.dsa.

    Ok, the problem here is that in that path, it goes to My Library and there is no Scripts/Utilities folder there.   The folders are listed (under My Library) as follows:

    data

    figures

    people

    presets

    runtime

    scene

    scene subsets

    scenes

    There isn't a scripts folder and yes, I have "show hidden files" checked.

     

  • jukingeojukingeo Posts: 711
    edited February 2021

    @Richard Haseltine

    I have tried it again this morning and same results.  I can execute the script above in the ScriptIDE pane adjusted to 40 entries and it works, but once I close out of Daz Studio, the script is erased.  I need it to save and it is not doing that.  The path you provides also doesn't show up in the Script IDE dialog and I had showed you what is in my My Library folder.   The path you provided is fine up to the My Library folder, but contained within, there is no Scripts folder.    I have tried to find the Set Recent Documents.dsa document manually, but I cannot find it.    I would like to get this issue fixed as I do rely on the  Recent Documents list to see what current projects I am working on and 10 just is no where near enough.

    Thank you,

    Geo

    Post edited by jukingeo on
  • Create the folders, or use a diffrent path - the save location isn't functionally significant, though it's easier to use the script if it's somewhere in a content directory.

  • jukingeojukingeo Posts: 711

    Richard Haseltine said:

    Create the folders, or use a diffrent path - the save location isn't functionally significant, though it's easier to use the script if it's somewhere in a content directory.

    Ok, I have created the folders under My Library and saved the file with SetRecentDocuments.dsa for the file name.   I had closed out of Daz, opened it back up and started to open and close a few scenes.   Result?  It doesn't work.  It shows 10 files and any new one that is opened pushes the last one off.

    While the script works manually for the session, it is really useless to me if I have to engage it all the time as when I close Daz it doesn't remember it.

    Is there a way to get into the actual master preferences file that starts up when Daz starts and just alter the file from there changing the recent documents setting from 10 to 40? 

    Thanks,

    Geo

  • You could set it to run on start up in Edit>Preferences (Daz Studio>Preferences on a Mac) in the Start up tab.

  • jukingeojukingeo Posts: 711
    edited February 2021

    Richard Haseltine said:

    You could set it to run on start up in Edit>Preferences (Daz Studio>Preferences on a Mac) in the Start up tab.

    Alright I tried that and it is activating the file on startup, but it is doing something weird.  First, it STILL is only starting with 10 file slots, however, it seems to be keeping the older ones that were loaded on before I had set the SetRecentDocuments.dsa file to open up on start up.   So anything on the prior session is erased immediately after that regarding to how many files I have opened in the previous session.   So apparently that script isn't working.

    Again, I think the main start up file has to be edited to change the recent file number that is stored there so that the program will save those files in the list upon exiting the program and that file.    I think what is happening now is that the script is just starting over again with each start up and hence, it defeats the purpose.  In essence I want it to do what it supposed to, but just with 40 entries instead of 10.   The trouble is I don't know what, or where that file would be to edit it.

    While the above script does work, it seems to work only for the work session I am on.  Once I close out of Daz, the setting goes back to 10 entries and is deleting the ones after the last time it loaded the SetRecentDocuments.dsa file.

    So I need to know what to do next.

    Thanks,

    Geo

    Post edited by jukingeo on
  • jukingeojukingeo Posts: 711

    Hello All,

    Since the above script isn't working I had found a work around that actually works better.   I just created an instance of the scenes folder on my desktop and set the files for most recently changed to show up first.  So when Windows boots up, I just open the folder instead of Daz and then click on the file I want and it opens the file within Daz.   Problem solved and I am not limted to just 40 slots either.  The WHOLE folder is in date order.   This is good because I can look at my project by day, week or month.   While I still would have loved to figure out what went wrong and why the script isn't saving when closing out of Daz, the method I figured out actually will work out better in the long run.

    Thanks anyway, but I guess some things that I would like to do just don't work.

  • Have you seen the latest Public Beta, which has the change listed in the change log to make the setting persist? (Sorry, I wrote this last night and it apparently didn't go through.)

  • jukingeojukingeo Posts: 711

    Hello,

    No, I haven't, I usually do not load Beta programs on my system.  However, if this is going to be a change, I think a good recommendation would be to have a spot under the preferences tab in which you can set the amount to how many entries are visible in the Recent Documents tab.   So I think until a change like that comes about, the solution I came up with seems to be superior to what we have been attempting to do here so far.

    Thanks,

    Geo

Sign In or Register to comment.