Here is a simple slider script.
// 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.