Hi. Can someone tell me if there is a better way to do this. I want to rotate a scene to it's startup view onloadcomplete.
I can do it via <events onloadcomplete="delayedcall(1,lookto(-74.425,6.879,120));" /> where I am manually putting in the hlookat, vlookat and fov values.
But rather than manually inputting I have been trying to replace the variables with something like <events onloadcomplete="delayedcall(1,lookto(get.hlookat, get.vlookat, get.fov));" /> but this isn't working. What am I doing wrong?
My scene code is this
<scene name="scene_Arrangement_Room" title="Arrangement Room" thumburl="panos/Arrangement_Room.tiles/thumb.jpg" lat="" lng="" alt="" heading="">
<control bouncinglimits="calc:image.cube ? true : false" />
<view hlookat="-74.425" vlookat="6.879" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Arrangement_Room.tiles/preview.jpg" />
<image>
<cube url="panos/Arrangement_Room.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,640,1280,2688,5376" />
</image>
<events onloadcomplete="delayedcall(1,lookto(-74.425,6.879,120));" />
<hotspot name="spot1" style="skin_hotspotstyle" ath="-30.846" atv="6.802" linkedscene="scene_reception" linkedscene_hoffset="292.22" use3dtransition="true" />
</scene>
Thanks for any help
Thomas