Hi guys.
It feels like I´m very close, but I´v been stuck for a while now, hope someone can give me a clue!...
Im trying to create a single UI page from which predefined materials/surfaces can be chosen.
However with a surface parameter placed in a UI_INFIELD code, I can only make it choose between the surfaces from the indexed library.
If using a integer parameter in the UI script, I can´t make it control my surface parameter without getting this error:
" possibly unwanted parameter change at line... "
I created surfaces in the MasterScript via "Define Material" but It seems I can´t make the surface/material parameter choose anything but a numeric value, hence the indexed library surfaces...
I´ve tried some overwriting in the Parameter script, but nothing worked so far.
Here´s the UI code with the "testp1" parameters as an integer:
ui_infield "testp1",20,60,310,70,
1,"4c400x100",4,1,
70,70,40,40,
1,"Red",
2,"Yellow",
3,"Blue",
4,"Green"
And the Parameter script:
values "testp1" 1,2,3,4
PARAMETERS mat= testp1
IF mat=1 THEN
mat1= "Red"
ENDIF
IF mat=2 THEN
mat1= "Yellow"
ENDIF
IF mat=3 THEN
mat1= "Blue"
ENDIF
IF mat=4 THEN
mat1= "Green"
ENDIF
!PARAMETERS mat1=mat1
Any tips, help or guidance will be highly appreciated...