[Closed] Dynamic UI, spinner problem
Hi Folks,
i’m trying to create a dynamic ui with the stringstream method. i have setup my spinners to control the subdiv values of vray materials and everything works fine until i try to setup the events for the spinners.
here is the messed up code:
for i = 1 to spinnerArray.count do
format "on GM_spinner% changed value do %.reflection_subdivs = value
" i spinnerArray[i] to:rolloutSS
and i get this error message
-- Syntax error: at keyword parameter, expected <factor>
-- In line: on GM_spinner1 changed value do vray_mat_01:V
Cheers
Hi G.M!
it’s possibly the output from your spinner array variable isn’t giving the correct syntax for the rollout. (the colon sign seems to cause the error) The way to test this is to ouptut the stringstream to a script and check the code directly. There is a global controls variable attached to the rollout class, and it contains an array of all the controls on the rollout, in the order they are created. this might help you in retrieving the right variable to format in your script.