Re-order Scripts menu

So, I'm well aware of how to add a script as a custom action to the Scripts menu.  I also know about the Window > Workspace > Customize menu entry that lets you fiddle with custom actions

My question is whether there's a way to re-order the entries in the Scripts menu, other than by deleting them all and re-inserting them.  I'm not adverse to editing a setup file, if I need to - where is this information stored?

Comments

  • NorthOf45NorthOf45 Posts: 5,485

    You can just drag and drop the items in the Customize dialog, on the Menus tab. The interface is a little sloppy, the entries stay highlighted as you drag across them, and it might take a try or two to get it to drop in the right place.

  • There is apaprently some work on this, especially the highlighting, in the "next major build" of Daz Studio.

  • jjoynerjjoyner Posts: 616
    edited September 2022

    rames44 said:

    So, I'm well aware of how to add a script as a custom action to the Scripts menu.  I also know about the Window > Workspace > Customize menu entry that lets you fiddle with custom actions

    My question is whether there's a way to re-order the entries in the Scripts menu, other than by deleting them all and re-inserting them.  I'm not adverse to editing a setup file, if I need to - where is this information stored?

    This took me a while to notice but, in addition to what @NorthOf45 provided, when you drag a menu item to reposition it, there is a very thin and slightly brighter horizontal line at the bottom of the highighting that serves as a locator for where the item being moved will go.  As @NorthOf45 stated, the process is a bit sloppy and does sometimes take a couple of tries to reposition an item as desired.

    Post edited by jjoyner on
  • rames44rames44 Posts: 329

    Thanks. I had tried to drag items, but it didn't seem to work. Probably operator error. 

  • MelanieLMelanieL Posts: 7,379
    edited September 2022

    I also have a lot of trouble moving things round in the menu by drag-and-drop. So I have been known to resort to editting the menu in Notepad++.

    If you save your current layout, you can find the file you need here:
     [drive letter] /Users/ [your user name] /AppData/Roaming/DAZ 3D/Studio4/user layouts/menus/
    - it willl be called "whatever name you saved it as".dsx

    Then search for the word "Scripts"
    This should find you a line that says <Submenu Default="false" Type="Custom" Label="&amp;Scripts">

    The lines below that say "CustomAction Name=" then string of random-looking characters relate to the items in your Scripts menu. You'll need to look at the drop-down menu in Daz Studio to work out which is which. Then (really really carefully!) move the lines around to match the sequence you want. I suggest you take a backup copy of that file first, just in case it goes horribly wrong.

    The reopen Daz Studio and load your saved layout - check it looks as you want, and if so, voila!  (If not, use the backup you made)

    Post edited by MelanieL on
  • jbowlerjbowler Posts: 794

    rames44 said:

    So, I'm well aware of how to add a script as a custom action to the Scripts menu.  I also know about the Window > Workspace > Customize menu entry that lets you fiddle with custom actions

    My question is whether there's a way to re-order the entries in the Scripts menu, other than by deleting them all and re-inserting them.  I'm not adverse to editing a setup file, if I need to - where is this information stored?

    I go into my DAZ profile directory and edit the .dsx file directly.  The directory (for the general release) is, in Windows, %AppData%\DAZ 3D\Studio4 and the files to look at are the ones with the ".dsx" extension  The information is scattered across several files, just search for one of more obvious names that you have under "Scripts".  You can actually create new toolbar entries just as is done with "Turbo Loader" (which creates it's only top level menu) and the entries can also be under other top-level menus; the EJ Artist Reference Studio product puts its entry at the bottom of the Window menu.

    Back up the .dsx files; make a copy, before you start hacking them and after you have what you want.  This will help make you proof against bugs in DAZ which delete them ;-)

Sign In or Register to comment.