I try to calculate a dynamic lookat-value in vtourskin.xml. But that does not seem to work. The pano I enter only shows loading and nothing happens.
I made some debug outputs, so I know, the value for "var" is correct. When I replace get(var) in lookat with some numeric value it works.
nordung is set in the tour.xml as nordung="45"
Code
...
trace('linkedscene nordung = ',scene[get(linkedscene)].nordung);
set(var,scene[get(linkedscene)].nordung);
trace('var = ',get(var));
lookat(get(var),0)
Okay, seems to me, that the problem occurs, because nordung is a string, not an integer. Got NaN, when I tried to add() an int. Is there any possible conversion?