If you have QT interface then you are 80% there. Wasn't there a QT builder included in the DS SDK or DAZ Pro distribution..
The sliders can be linked to dz functions to get studio to react to them.
// DAZ Studio version 3.1 filetype DAZ Script
var wDlg = new DzDialog;
var box = new DzVGroupBox(wDlg);
box.width=300
box.height=200
var w = new DzEnumSlider( box )
w.addItem( "oh" )
w.addItem( "my" )
w.addItem( "Bob" )
w.value = 2;
// setup button to update debug results
but = new DzPushButton( box );
but.text = "debug";
connect( but, "clicked()", butclicked )// click button to show update in debug
wDlg.width=300
wDlg.height=200
wDlg.exec()
function butclicked()
{
debug( "val = " + w.value );
}
BTW if this project is mostly script based it should be in the Script forum. if you want to call an external script from within be sure to set return point also.
Comments
If you have QT interface then you are 80% there. Wasn't there a QT builder included in the DS SDK or DAZ Pro distribution..
The sliders can be linked to dz functions to get studio to react to them.
Hi and thanks for your reply.
I used the Qt Builder included in Daz Studio 4.5 to make the interface.
I'm not sure what code to put in the header to enable the widget to remain undocked and overlain on the active viewport.
Maybe I'll try some test lines and post them here.
post moved
Post moved. I have no idea how to delete this box.
post moved
Here is a simple slider script.
BTW if this project is mostly script based it should be in the Script forum.
if you want to call an external script from within be sure to set return point also.
Ooo! Bless you.
This isn't the script forum?
Ok, I'll look for it.
Thanks again.