hi there.
Im trying to create a UI with conditional behaivor. I have two pop-up menus and a I want one to change depending on what has beens choose on the other. is this posible in a UI script, or do I have to do it in the startup file?
here is my script so far:
//startup script_____________________________
image shot_out(
image In=0,
string seq_n="sequence",
string shot_list="shot"
)
{
fOut = FileOut(In, "test");
return fOut;//(In, fileOutName);
}
//UI script______________________________
nuiPushMenu("Tools");
nuiPushToolBox("User");
nuiToolBoxItem("@shot_out",shot_out());
nuiPopToolBox();
nuiPopMenu();
nuxDefMultiChoice("shot_out.seq_n", "sq_fp|sq_ht");
string seq_fp_shots="fp_01|fp_02|fp_03";
string seq_ht_shots="ht_01|ht_02|ht_03";
//conditional
nuxDefMultiChoice("shot_out.shot_list", "shot_out.seq_n"=="sq_ht"?seq_ht_shots:seq_fp_shots);
//_______________________
any idea?