Jump to content
3D Coat Forums
Sign in to follow this  
sir_AXE

[Solved] if (Droplist X == Y && $DialogButton#1) How to ?

Recommended Posts

Pretty new to scripting for 3d coat .Having trouble to get droplist selection working on click :

AddDroplist("X","item1,item2,item3");  //Make a list

ModalDialogOkCancel("",""); // Make UI , OK , Cancel

if (Droplist X == Y && $DialogButton#1); // Do something when Y==item1 and OK button is pressed ???

Tried different ways , can't seem to figure out the correct syntax

Share this post


Link to post
Share on other sites

Nevermind , Droplist uses integers , missed that in the manual

int Export; //create var

AddDroplist("Export","a,b,c,d"); //make list

if (Export==0) //if 1st then
        suffix="_color";

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×