[Released] Dialog Design [Commercial]

https://www.daz3d.com/dialog-design

Intended as a resource for Daz Script developers, this script allows you to build your dialog box(es) with an easy, drag-and-drop interface, and then generates the Daz Script code automatically.  

Here is an 8-minute demo video: https://www.youtube.com/playlist?list=PLa07lbrxdWyR20vg-BraxeJg4XE9IjYo5

Comments

  • EsemwyEsemwy Posts: 578

    Thanks for this! This is huge! Should save me a boat load of time.

    I've been hacking at this on an off since first thing this morning. After coming to grips with the nested layout limitation (future feature?), I was able to generate a fairly reasonable UI for a script I was working on.

    I have noticed a few strange items, though, most likely because I'm tying to hack my way around the single layout limitation.

    I've never been able to get DzVBoxLayout::addSpacing to work correctly. The addStretch method seems to be what I expect instead.

    I was able to get nested layouts to at least generate code by nesting the DzHBoxLayout within a DzGroupBox. This code would have been just fine except that Dialog Design inserts an extraneous DzWidget declaration overwriting the DzGroupBox variables. That's just weird.

    I've also noted the tendency to put 'undefined' in the script where the code should just not be generated.

    	// Create and define DzGroupBox: 'wGB_Buttons'	var wGB_Buttons = new DzGroupBox( wDialog );	verticalLayout.addWidget( wGB_Buttons );	wGB_Buttons.title = 'undefined';		// Create box layout	var wGB_Output = new DzWidget(  );	wGB_Output.orientation = DzWidget.Horizontal;	wGB_Output.setGeometry( undefined, undefined, undefined, undefined );	var horizontalLayout = new DzHBoxLayout( wGB_Output );	horizontalLayout.margin = 0;

    Anyway, great product! Thanks!

  • bitwelderbitwelder Posts: 212
    edited December 2018
    Esemwy said:

    Thanks for this! This is huge! Should save me a boat load of time.

    I've been hacking at this on an off since first thing this morning. After coming to grips with the nested layout limitation (future feature?), I was able to generate a fairly reasonable UI for a script I was working on.

    I have noticed a few strange items, though, most likely because I'm tying to hack my way around the single layout limitation.

    I've never been able to get DzVBoxLayout::addSpacing to work correctly. The addStretch method seems to be what I expect instead.

    I was able to get nested layouts to at least generate code by nesting the DzHBoxLayout within a DzGroupBox. This code would have been just fine except that Dialog Design inserts an extraneous DzWidget declaration overwriting the DzGroupBox variables. That's just weird.

    I've also noted the tendency to put 'undefined' in the script where the code should just not be generated.

    	// Create and define DzGroupBox: 'wGB_Buttons'	var wGB_Buttons = new DzGroupBox( wDialog );	verticalLayout.addWidget( wGB_Buttons );	wGB_Buttons.title = 'undefined';		// Create box layout	var wGB_Output = new DzWidget(  );	wGB_Output.orientation = DzWidget.Horizontal;	wGB_Output.setGeometry( undefined, undefined, undefined, undefined );	var horizontalLayout = new DzHBoxLayout( wGB_Output );	horizontalLayout.margin = 0;

    Anyway, great product! Thanks!

    Thanks for the feedback! Eventually I would like to support nested box layouts, and also grid layouts...I just have a few things to learn first. Are any of these wierdnesses happening where there are no nested layouts present? Either way, would love to get a copy of the .ui file, if you'd be okay with it. I'm curious about how people use nested layouts.

    Also, if you run into any widget properties that you wish were supported, please let me know. 

     

    Post edited by bitwelder on
  • EsemwyEsemwy Posts: 578
    edited December 2018
    bitwelder said:
    Esemwy said:

    Thanks for this! This is huge! Should save me a boat load of time.

    I've been hacking at this on an off since first thing this morning. After coming to grips with the nested layout limitation (future feature?), I was able to generate a fairly reasonable UI for a script I was working on.

    I have noticed a few strange items, though, most likely because I'm tying to hack my way around the single layout limitation.

    I've never been able to get DzVBoxLayout::addSpacing to work correctly. The addStretch method seems to be what I expect instead.

    I was able to get nested layouts to at least generate code by nesting the DzHBoxLayout within a DzGroupBox. This code would have been just fine except that Dialog Design inserts an extraneous DzWidget declaration overwriting the DzGroupBox variables. That's just weird.

    I've also noted the tendency to put 'undefined' in the script where the code should just not be generated.

    	// Create and define DzGroupBox: 'wGB_Buttons'	var wGB_Buttons = new DzGroupBox( wDialog );	verticalLayout.addWidget( wGB_Buttons );	wGB_Buttons.title = 'undefined';		// Create box layout	var wGB_Output = new DzWidget(  );	wGB_Output.orientation = DzWidget.Horizontal;	wGB_Output.setGeometry( undefined, undefined, undefined, undefined );	var horizontalLayout = new DzHBoxLayout( wGB_Output );	horizontalLayout.margin = 0;

    Anyway, great product! Thanks!

    Thanks for the feedback! Eventually I would like to support nested box layouts, and also grid layouts...I just have a few things to learn first. Are any of these wierdnesses happening where there are no nested layouts present? Either way, would love to get a copy of the .ui file, if you'd be okay with it. I'm curious about how people use nested layouts.

    Also, if you run into any widget properties that you wish were supported, please let me know. 

     

    No problem. I've included this morning's absolute failure (actually hangs Dialog Design) named the_way_id_like_to_use_layouts.ui, and this afternoons marginal success that I mentioned previously called the_way_i_sort_of_got_to_work.ui. They're both in the ZIP below, since UI files are forbidden to upload. I've had nothing but success in tests where I actually obey the rules.

    As you'll see, my preference is multiple DzHBoxLayout nested within a top level DzVBoxLayout using spacers to make the dialog stretch in a sensible manner. I rarely (but sometimes) nest more than two deep.

    zip
    zip
    example_layouts.zip
    2K
    Post edited by Esemwy on
  • Esemwy said:
    bitwelder said:
    Esemwy said:

    Thanks for this! This is huge! Should save me a boat load of time.

    I've been hacking at this on an off since first thing this morning. After coming to grips with the nested layout limitation (future feature?), I was able to generate a fairly reasonable UI for a script I was working on.

    I have noticed a few strange items, though, most likely because I'm tying to hack my way around the single layout limitation.

    I've never been able to get DzVBoxLayout::addSpacing to work correctly. The addStretch method seems to be what I expect instead.

    I was able to get nested layouts to at least generate code by nesting the DzHBoxLayout within a DzGroupBox. This code would have been just fine except that Dialog Design inserts an extraneous DzWidget declaration overwriting the DzGroupBox variables. That's just weird.

    I've also noted the tendency to put 'undefined' in the script where the code should just not be generated.

    	// Create and define DzGroupBox: 'wGB_Buttons'	var wGB_Buttons = new DzGroupBox( wDialog );	verticalLayout.addWidget( wGB_Buttons );	wGB_Buttons.title = 'undefined';		// Create box layout	var wGB_Output = new DzWidget(  );	wGB_Output.orientation = DzWidget.Horizontal;	wGB_Output.setGeometry( undefined, undefined, undefined, undefined );	var horizontalLayout = new DzHBoxLayout( wGB_Output );	horizontalLayout.margin = 0;

    Anyway, great product! Thanks!

    Thanks for the feedback! Eventually I would like to support nested box layouts, and also grid layouts...I just have a few things to learn first. Are any of these wierdnesses happening where there are no nested layouts present? Either way, would love to get a copy of the .ui file, if you'd be okay with it. I'm curious about how people use nested layouts.

    Also, if you run into any widget properties that you wish were supported, please let me know. 

     

    No problem. I've included this morning's absolute failure (actually hangs Dialog Design) named the_way_id_like_to_use_layouts.ui, and this afternoons marginal success that I mentioned previously called the_way_i_sort_of_got_to_work.ui. They're both in the ZIP below, since UI files are forbidden to upload. I've had nothing but success in tests where I actually obey the rules.

    As you'll see, my preference is multiple DzHBoxLayout nested within a top level DzVBoxLayout using spacers to make the dialog stretch in a sensible manner. I rarely (but sometimes) nest more than two deep.

    Thanks for taking the time to upload these!  I really like your dynamic-sizing dialog setup, didn't know that was possible. Hope I can implement that capability at some point.

Sign In or Register to comment.