Help! All my scripts disappeared!

Today when I opened DS, everything under my scripts menu is gone! What happened and how do I restore them?

Comments

  • They are all still sitting under scripts in your content library so you can still use them.  I don't know how you get them on the menu.

  • WonderlandWonderland Posts: 7,027

    These are all scripts I created to go under scripts. They’ve been there for ages and just disappeared!

  • WonderlandWonderland Posts: 7,027

    The V3Digitimes menu items disappeared too. What happened to my entire script menu? @RichardHazeltine ? Please help... I had like 50 things I use all the time in that menu...

  • carrie58carrie58 Posts: 4,009
    edited August 2019

    At any point did you save your setup? I've had that happen a couple of times so now I save a custom workspace set up each time I add a script . Other then that I think your only other option is to go back through your script folder and resave as a customisible action

     

    Post edited by carrie58 on
  • HavosHavos Posts: 5,392
    edited August 2019

    Is this using the released version of DS or the Beta?

    If it the beta, then look here:

    https://www.daz3d.com/forums/discussion/311401/using-your-old-preferences-in-ds-beta-public-build#latest

    Post edited by Havos on
  • WonderlandWonderland Posts: 7,027

    No the released version. Everything was fine yesterday and today it suddenly disappeared...

  • They are probably still listed in Window>Workspace>Customise, under Custom Actions on the left. You can drag them into the desired menu or toolbar in the tabs on the right, if you don't have a saved layout to restore.

  • WonderlandWonderland Posts: 7,027

    Thanks, I will try that after this render finishes

  • WonderlandWonderland Posts: 7,027

    No, didn’t work, all my scripts are still gone...

  • WonderlandWonderland Posts: 7,027

    Where do I drag what? 

  • The V3Digitimes menu items disappeared too. What happened to my entire script menu? @RichardHazeltine ? Please help... I had like 50 things I use all the time in that menu...

    Can't speak to your other scripts, but the V3Digitimes menu has disappeared on me before, too, and I have no idea why. But you can re-install it if you go to that product in the Product Library; there's an icon to install the script.

  • WonderlandWonderland Posts: 7,027

    Yes, I’m not too worried about that one, it’s the 50 ones I created myself...

  • Do you back up, or have File History on for, your AppData folders?

  • L'AdairL'Adair Posts: 9,479

    They are probably still listed in Window>Workspace>Customise, under Custom Actions on the left. You can drag them into the desired menu or toolbar in the tabs on the right, if you don't have a saved layout to restore.

    @Wonderland, Window>Workspace>Customize is the path from the main menu, however the shortcut key is F3.

    1. Use F3 to open the Customize Daz Studio dialog. The upper portion of the dialog is divided into two columns.
    2. In the left column, at the very top is "Custom". Double-click to expand, and you should find all of your custom actions.
    3. In the right column, click on Menus tab.
    4. At the top of the Menu column, double-click on Main Menu to expand.
    5. Right-click on the Main Menu listing and a menu item to Add Submenu… will popup.
    6. Click on Add Submenu…
    7. In the resulting field, type Scripts and hit Enter. (If you don't hit the Enter key, the new name won't "take.")
    8. Highlight your new Scripts menu and drag it to where you're used to seeing it.
    9. Now, from the left column, drag your Custom Actions to the Scripts menu.
    10. Optionally, create submenus for Scripts, for organizing. You'll have to drag the additional submenus into the Scripts folder to parent.
    11. When you are done, click on Accept to save your changes.

    I hope this helps.

  • barbultbarbult Posts: 24,755

    Sometimes just creating a new custom action will add the scripts menu back to your menu bar with all your old custom actions still there. Good luck. It is a pain to have to recreate the whole thing again.

  • They are probably still listed in Window>Workspace>Customise, under Custom Actions on the left. You can drag them into the desired menu or toolbar in the tabs on the right, if you don't have a saved layout to restore.

    L'Adair said:

    @Wonderland, Window>Workspace>Customize is the path from the main menu, however the shortcut key is F3.

    1. Use F3 to open the Customize Daz Studio dialog. The upper portion of the dialog is divided into two columns.
    2. In the left column, at the very top is "Custom". Double-click to expand, and you should find all of your custom actions.
    3. In the right column, click on Menus tab.
    4. At the top of the Menu column, double-click on Main Menu to expand.
    5. Right-click on the Main Menu listing and a menu item to Add Submenu… will popup.
    6. Click on Add Submenu…
    7. In the resulting field, type Scripts and hit Enter. (If you don't hit the Enter key, the new name won't "take.")
    8. Highlight your new Scripts menu and drag it to where you're used to seeing it.
    9. Now, from the left column, drag your Custom Actions to the Scripts menu.
    10. Optionally, create submenus for Scripts, for organizing. You'll have to drag the additional submenus into the Scripts folder to parent.
    11. When you are done, click on Accept to save your changes.

    I hope this helps.

    That worked for me. Thanks!!

  • SkelchSkelch Posts: 275

    This post is very valuable. This happened to me and I was able to get things back because fo this post Thank you. 

  • HaruchaiHaruchai Posts: 1,977
    edited January 2021

    Richard Haseltine said:

    Do you back up, or have File History on for, your AppData folders?

    Doesn't work for me. I have a backup. I overwrote the files with the files I backed up in November 2020 (the last time I backed up my script menu). Nothing changed, no Scripts menu. Created a Scripts menu and tried again. No change, nothing was populated under the menu.

    The layout has worked but the customactions.dsx does not repopulate my scripts list.

    I am used to program updates needing me to redo my layout, which is why I started to backup these files specifically, but I've never had an entire menu disappear before.

    Any help getting this to work would be greatly appreciated, I really don't want to have to recreate a scripts list by hand, with many sub folders, that has been created over months/years. Even with the above method recreating and ordering all my subfolders will be a pain (not of my making).

    2021-01-10.png
    528 x 167 - 14K
    Post edited by Haruchai on
  • Haruchai said:

    Richard Haseltine said:

    Do you back up, or have File History on for, your AppData folders?

    Doesn't work for me. I have a backup. I overwrote the files with the files I backed up in November 2020 (the last time I backed up my script menu). Nothing changed, no Scripts menu. Created a Scripts menu and tried again. No change, nothing was populated under the menu.

    The layout has worked but the customactions.dsx does not repopulate my scripts list.

    I am used to program updates needing me to redo my layout, which is why I started to backup these files specifically, but I've never had an entire menu disappear before.

    Any help getting this to work would be greatly appreciated, I really don't want to have to recreate a scripts list by hand, with many sub folders, that has been created over months/years. Even with the above method recreating and ordering all my subfolders will be a pain (not of my making).

    The scripts/content they are pointing to are still there, in the same relative location (or same absolute location if not in a content directory)? Also, check permissions - I've been told in the past that restoring the CMS database can cause permission issues.

  • HaruchaiHaruchai Posts: 1,977
    edited January 2021

    Richard Haseltine said:

    The scripts/content they are pointing to are still there, in the same relative location (or same absolute location if not in a content directory)? Also, check permissions - I've been told in the past that restoring the CMS database can cause permission issues.

    Hi Richard, thanks for the response. I know the scripts are in my Library, I know the Custom list is still there as mentioned above. I'm not sure which permissions you are talking about. If you could elaborate I would be obliged.

    So the customactions.dsx is the list that is in the left hand pane of the settings and not what appears in the Scripts menu list i.e it lists the scripts but not menu sub folders and order?

    Post edited by Haruchai on
  • Right, the Scripts menu is in the menus.dsx file - but the actions are identified by the alphanumeric string from the name entry in Custom Actions, not by the file name.

  • HaruchaiHaruchai Posts: 1,977
    edited January 2021

    It is just broken as far as I can see. I replaced the menu.dsx with a backup and the Scripts menu item disappeared. I replaced the entire Studio4 folder in AppData-Roaming-DAZ3D with one from my C drive backup in November to a copy of 4.15 in which I had created a Scripts menu item. On starting Studio the Scripts menu I had created had disappeared. There is more going on here than I know how to fix other than rolling back completely to my 4.14 install or to do it it by hand.

    Post edited by Haruchai on
  • I've noticed that sometimes when I switch Daz's layout... Broadway to whatever, that sometimes I loose my scripts.  It hasn't happened in a while... but I don't mess around with the layout much. 

    It always seem to work again when I switched back to the layout theme I had been working on before the change.

    Your mileage may vary.

  • HaruchaiHaruchai Posts: 1,977

    Chumly said:

    I've noticed that sometimes when I switch Daz's layout... Broadway to whatever, that sometimes I loose my scripts.  It hasn't happened in a while... but I don't mess around with the layout much. 

    It always seem to work again when I switched back to the layout theme I had been working on before the change.

    Your mileage may vary.

    Thanks for the suggestion, I had tried that without sucess however.

  • UthgardUthgard Posts: 866

    In my case, the thing is quite bizarre: I still have my custom menus and the scripts menu has all the submenus I added, but there are no references to the things I added in there. When I look in the workspace menu (F3), I can see alphanumeric strings in there, but I can't seem to make them link to their reference in any way. It's as if Studio hiccuped when referencing things and since then just refuses to look in their direction. Any suggestions?

  • MarshianMarshian Posts: 1,465

    These are the files I back up every time I add new scripts. 

    Screenshot 2021-12-10 215402.png
    696 x 980 - 96K
  • MarshianMarshian Posts: 1,465
    edited December 2021

    These are the files I back up every time I add new scripts. --> After I close DS

    Post edited by Marshian on
  • TogireTogire Posts: 414

    I had the same problem and I follow the procedure of L'Adair, ie to drag the actions in the proper menu.

    I have a couple of questions

    1/ is there a way to select several actions to drag them altogether to the menu or am I really supposed to drag tens of actions one by one to the proper location?

    2/ Once it is done, I will definitely save the configuration. I saw that I can save some files from the roaming dir, but is there a method to do that within DS?

  • Richard HaseltineRichard Haseltine Posts: 102,344

    alainmerigot said:

    I had the same problem and I follow the procedure of L'Adair, ie to drag the actions in the proper menu.

    I have a couple of questions

    1/ is there a way to select several actions to drag them altogether to the menu or am I really supposed to drag tens of actions one by one to the proper location?

    2/ Once it is done, I will definitely save the configuration. I saw that I can save some files from the roaming dir, but is there a method to do that within DS?

    Window>Workspace>Save Layout, or use the Export button in Window>Workspace>Customise.

  • TogireTogire Posts: 414
    edited July 2022

    Thanks Richard for the tip to save the menus.

    Re-editing the menu entries in DS is a real PITA as you cannot move several items and moving 100+ items one by one with this tiny font is a definite no-no for me.
    Here is how I did proceed, it may help some of you.
    IMPORTANT NOTE: it requires some tools that are only available in windows with cygwin installed or linux. It should also work on macs but it is untested.

    Close DS.
    In the roaming dir %appdata%/daz 3d/studio4/ (C:\Users\<Your User Name>\AppData\Roaming\DAZ 3D\Studio4) there are two related files:
    customaction.dsx that defines a cryptic NAME for every custom actions
    menus.dsx that defines menus entries by means of these previously defined NAMEs

    customactions.dsx looks like that (formatted by me for lisibility)


    <DAZStudioActionMgr Version="1.3.0.0">
     <CustomActionList>
      <CustomAction Accel="" Icon="D:/am2/daz/Daz Lib/Scripts/3D Universe/Scene Tools Make ALL Visible.png" ShowTextWithIcon="false"
              Description="Scene Tools Make ALL Visible" Name="b93f01c0-fa9d-421d-8d98-a58bfa473337"
          File="D:/am2/daz/Daz Lib/Scripts/3D Universe/Scene Tools Make ALL Visible.dse" Text="Scene Tools Make ALL Visible"/>
      <CustomAction Accel="" Icon="D:/am2/daz/Daz Lib/Scripts/3D Universe/Scene Tools Hide All Non-figures.png" ShowTextWithIcon="false"
              Description="Scene Tools Hide All Non-figures" Name="304fae02-ad98-43c8-93b5-f05b57aaca40"
          File="D:/am2/daz/Daz Lib/Scripts/3D Universe/Scene Tools Hide All Non-figures.dse" Text="Scene Tools Hide All Non-figures"/>
      ...

     

    while menus.dsx is

      ... (standard menus definitions) ...
      <SubMenu Default="false" Type="Custom" Label="&amp;Scripts">
       <SubMenu Default="false" Type="Custom" Label="Scene tools">
         <CustomAction Name="b93f01c0-fa9d-421d-8d98-a58bfa473337"/>
       </SubMenu>
       <CustomAction Name="304fae02-ad98-43c8-93b5-f05b57aaca40"/>
       ...
      </SubMenu>
      ... (more standard menus definitions) ...

    To allow an easy edition of the menu file, I use the following procedure.
    Copy the files customaction.dsx and menus.dsx from the roaming dir to another dir
    Run this command on a console to clean the customactions.dsx entries and add them a meaningful comment.

    sed -n -e '/CustomAction Accel/s/^.*Name=\"\([a-f0-9-]*\)\".*Text=\"\(.*\)\"\/>/<CustomAction Name=\"\1\"\/><!--\2-->/p' < <your-copy-of-customactions.dsx> > <a-new-text-file>

    This will transform customactions.dsx and copy it in the file <a-new-text-file> with entries like


    <CustomAction Name="b93f01c0-fa9d-421d-8d98-a58bfa473337"/><!--Scene Tools Make ALL Visible-->
    <CustomAction Name="304fae02-ad98-43c8-93b5-f05b57aaca40"/><!--Scene Tools Hide All Non-figures-->
    <CustomAction Name="57b6d90d-0002-40fa-be2a-4d2516794f2d"/><!--Scene Tools Hide All Hair-->
    ...

     

    The entry format corresponds to what is expected in the menus.dsx file, with an xml comment (safely ignored by DS) to ease the organization of the menus.


    If you want to create submenus, add


       <SubMenu Default="false" Type="Custom" Label="The Label of My Submenu">
         (paste here the entry that you want in this submenu)
       </SubMenu>

    Using an editor that understands xml formats and that allows to create macros (like atom, sublime, emacs, etc), helps a lot for the menu customization.
       
    Once you have created all your menus entries, copy the new menus.dsx in the Roaming directory (but keep the initial version, just in case).
    Then you can restart DS and verify that everything is correct.

     

    Post edited by Togire on
Sign In or Register to comment.