Szene Builder

RuphussRuphuss Posts: 2,631
edited December 1969 in The Commons

are we able to add szenes to the Szene builder dialogue in "Home"
i saved a Szene under "Szene Builder" but it does not appear in the Dialogue box

Comments

  • BeeMKayBeeMKay Posts: 7,019
    edited December 1969

    What program are you talking about? DAZ Studio?

  • Richard HaseltineRichard Haseltine Posts: 100,765
    edited December 1969

    Yes, but you need to edit the SceneBuilder.json file in the Resources folder in the application folder by hand (and that will require admin access to edit if it's in Program Files). The simplest change would be to add a new preset to the files list by adding a comma after the current final entry followed on a new line by the desired items:

       "files": [
        "/Scene Builder/Starter Essentials/Shaded Haven.duf",
        "/Scene Builder/Starter Essentials/Surfer Guy Beach.duf",
        "/Scene Builder/Starter Essentials/Alchemy Chasm.duf"
        ],

    becomes

       "files": [
        "/Scene Builder/Starter Essentials/Shaded Haven.duf",
        "/Scene Builder/Starter Essentials/Surfer Guy Beach.duf",
        "/Scene Builder/Starter Essentials/Alchemy Chasm.duf",
        "new relative path to a file"
        ],
  • RuphussRuphuss Posts: 2,631
    edited December 1969

    lee_lhs said:
    What program are you talking about? DAZ Studio?

    yes newest version

  • RuphussRuphuss Posts: 2,631
    edited December 2013

    Yes, but you need to edit the SceneBuilder.json file in the Resources folder in the application folder by hand (and that will require admin access to edit if it's in Program Files). The simplest change would be to add a new preset to the files list by adding a comma after the current final entry followed on a new line by the desired items:

       "files": [
        "/Scene Builder/Starter Essentials/Shaded Haven.duf",
        "/Scene Builder/Starter Essentials/Surfer Guy Beach.duf",
        "/Scene Builder/Starter Essentials/Alchemy Chasm.duf"
        ],

    becomes

       "files": [
        "/Scene Builder/Starter Essentials/Shaded Haven.duf",
        "/Scene Builder/Starter Essentials/Surfer Guy Beach.duf",
        "/Scene Builder/Starter Essentials/Alchemy Chasm.duf",
        "new relative path to a file"
        ],

    thx Richard for trying to help

    so this is not meant to be used just easily
    and only for starter essentials

    Post edited by Ruphuss on
  • rbtwhizrbtwhiz Posts: 2,250
    edited December 2013

    If you want to customize a Scene Builder like dialog, I suggest you do it a different way (which I'll explain) because we will not be bashful about overwriting the one you are referring to now.

    DAZ Studio 4.6.1.39 allows you to construct your own "Scene Builder" file and launch it via script. The script to do this is very simple.

    var sPath = String("%1/SceneBuilder.json").arg( App.getResourcesPath() );
    App.showSceneBuilder( sPath );

    Save the script to file or a Custom Action and you can add it to the menus and/or toolbars. You can change the name and path of the SceneBuilder.json file, so long as you provide that name and path to the script. Formatting of the JSON file is the same regardless of where the file lives. So long as it follows the correct structure, you can customize what is in it however you want.

    --- Technical detail about the JSON file ---

    A Scene Builder definition file describes an anonymous JSON object at its base. This base object may define a "title" and/or a "description" member. The expected type for these members is string. The value of these members may consist of plain text, or an HTML subset. The base object must define a "choices" member. The expected type for this member is array. The choices array is populated by anonymous 'choice' objects.

    Each choice object may define a "label" member. The expected type for the member is string. The value of this member may consist of plain text, or the HTML subset linked above. Each choice object may also define a "none" member. The expected type for the member is string. The value of this member is plain text. The "none" member defines the text to override the "None" option with. Each choice object must define a "files" member. The expected type of this member is array. The files array is populated by string values that represent the relative paths of user facing content files. Each choice object may also define a "default" member. The expected type for this member is string. The value of this member should correspond with one of the strings in the files array.

    If a file does not exist at a specified path, the file is omitted from the choice. If all files in a choice are omitted, the choice is omitted. If all choices are omitted, the dialog is not displayed.

    -Rob

    Post edited by rbtwhiz on
  • RuphussRuphuss Posts: 2,631
    edited December 1969

    thank you Rob for explaning
    i think this is to much for me
    perhaps someone can make a tut for this

    is there a Chance for the future making an easy to use tool out of it ?
    now it Shows what it can do but without editing the Szenebuilder is not very usefull

  • Richard HaseltineRichard Haseltine Posts: 100,765
    edited December 1969

    I think the Scene Builder is aimed at content creators wanting to provide options for users, rather than at end users wanting to set up their own lists, though it isn't that hard to build a basic set. What would you want in your own scene builder file?

  • RuphussRuphuss Posts: 2,631
    edited December 1969

    the Szene builder could be a quick reference for often used Environments, characters, lights and rendersettings
    this could be very Handy if i could just drag and dropthem into a szenebuilder Folder
    i do this already while working with categories mainly, ist just a step ahead

  • RuphussRuphuss Posts: 2,631
    edited December 1969

    but seems not to be of very much interest here

  • CypherFOXCypherFOX Posts: 3,401
    edited December 1969

    Greetings,
    I'm interested, but I don't have time to play with it until after Christmas. I do like the idea, especially for doing promo-style work, where you have an set of environments and light sets that you regularly use.

    I would like the ability to customize the flow, so e.g. on the first selection you say, 'Interior', or 'Exterior', then it offers different environments appropriate to the first answer.

    (Maybe you can chain Scene Builder scripts?)

    -- Morgan

  • James SchecterJames Schecter Posts: 3
    edited December 1969

    I did try some testing for the Scene Builder. I did these testing's in the Public Beta first. Then I tried it in the Public Release. The both worked, but with the small screen issue. My laptop has a small screen and resolution, but it can be adjusted if you wish. If you have a higher resolution and/or a bigger monitor, it should be fine.

    You can leave the rest of the code alone, or add more. It is up to you. This is the code that I modified with only. The files have to be in the folder, or you can just use the path to the file. You cannot use shortcuts. Those do not work. I used the default paths for testing. SceneBuilder.json file has to be in its default directory for this change to work.

    Now when you use this code or just modify it. It is up to you. It works to a point. The options do populate a horizontal scroll bar automatically, but if you want to add the other options similar to Props. It does not have the vertical bar. I am still working on that part.

    Here is the code that I used for modifying the SceneBuilder.json file only:

    {
    "title" : "

    Scene Builder

    ",
    "description" : "
    Welcome to the DAZ Studio Scene Builder. Please choose an option from each of the row(s) displayed below to begin building your scene. Once you have made your selection, press the OK button in the bottom right corner to continue.

    ",
    "choices" : [
    {
    "label": "

    Figure :

    ",
    "none" : "No Figure",
    "files": [
    "/Scene Builder/Starter Essentials/Barefoot Dancer.duf",
    "/Scene Builder/Starter Essentials/Surfer Guy.duf",
    "/Scene Builder/Starter Essentials/Dragon Slayer.duf",
    "/Scene Builder/Starter Essentials/Fiery Genesis.duf",
    "/Scene Builder/Genesis.duf",
    "/Scene Builder/G2B Female.duf",
    "/Scene Builder/Aiko 5.duf",
    "/Scene Builder/Stephanie 5.duf",
    "/Scene Builder/Victoria 5.duf",
    "/Scene Builder/Michael 5.duf"
    ],
    "default" : "/Scene Builder/Starter Essentials/Barefoot Dancer.duf"
    },
    {
    "label": "

    Props :

    ",
    "none" : "Empty Prop",
    "files": [
    "/Scene Builder/!Volleyball.duf"
    ],
    "default" : "/Scene Builder/!Volleyball.duf"
    },

    I have attached a screenshot on the scroll bar and the added other option "Props".

    Scene_Builder.jpg
    901 x 657 - 136K
Sign In or Register to comment.