You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Saturday, June 28th 2014, 9:13pm

Dynamic value for lookat not working/ string to int?

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"

Source code

trace('linkedscene nordung =  ',scene[get(linkedscene)].nordung);
trace('var = ',get(var));

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?

This post has been edited 1 times, last edit by "ehs" (Jun 28th 2014, 9:37pm)


Thursday, July 3rd 2014, 11:06am

Try using get() to the value: