hi all
how would i go about setting a list of colours from a dropdownlist change the colourpickers in the script
---------------------------------------------
-- PLUGIN DECLARATION
---------------------------------------------
plugin textureMap Colours
name: "Colours"
classID:#(0x82b4cdc4, 0x4f75873e)
extends:Cellular
replaceUI:true
(
----------------------------------------------
-- INTERFACE DESIGN PARAMS
----------------------------------------------
parameters main rollout:params
(
DColor1 type:#color default:(color 214 199 148) ui:color1
DColor2 type:#color default:(color 214 199 148) ui:color2
on DColor1 set val do delegate.divColor1 = delegate.divColor2 = val
on DColor2 set val do delegate.cellColor = val
)
---------------------------------------------
-- ROLLOUR & BUTTONS DEFINITION
---------------------------------------------
rollout params "color set"
(
label l "Please Select Colour From the Dropdown Below"
dropdownlist dd ""\
items:#("1","2","3","4","5","6","7","8","9","10") height:6
on dd selected i do
colorpicker color1 "Base Color" align:#right fieldwidth:244 fieldheight: 50
colorpicker color2 "" align:#right fieldwidth:0
--You will get 5 items in the dropdown list. --Change height to 5, and you will get 4.
)
----------------------------------------------
-- SHADER CREATION IN THE MATERIAL EDITOR
----------------------------------------------
on create do
(
)
)
brttd · 2014-07-29