Page 1 of 1

(resolved) Issue with wallset identifiers

Posted: Thu Oct 11, 2018 6:28 pm
by Gambit37
This works:

Code: Select all

dsb_alt_wallset(wallset.wallwriting_style1, lev, x, y, d)
but this doesn't:

Code: Select all

wallwriting_style = "wallwriting_style1"
dsb_alt_wallset(wallset[wallwriting_style], lev, x, y, d)
I'm not sure what I'm doing wrong in the second example?

Re: Issue with wallset identifiers

Posted: Thu Oct 11, 2018 7:37 pm
by Sophia
I think you'll need to post more code. The result of what you posted should be identical so something else is going wrong.

Re: Issue with wallset identifiers

Posted: Thu Oct 11, 2018 7:45 pm
by Gambit37
Gah, sorry, silly mistake. The above code was simplified and not exactly what I had written in my function.

Turns out I'd defined a variable in an (if..then) as local, so it never got returned to the rest of the function... feel free to delete this thread!