how to get krpano.view in xml file

  • I want to do a autorotate from current hlookat, and vlookat = 0, and fov=100.

    code:

    Code
    <plugin name="autorotate"	url="images/btn_auto.jpg" 	             	align="bottom" edge="center" y="20" x="+120"  blendmode="screen" onhover="showtext(Auto Rotate);"  	onover="set(blendmode,add);"  onout="set(blendmode,screen);" onclick="lookto(0,0,100);set(autorotate.enabled, true);"     	/>

    in this code, I can not use like lookto(view.hlookat,0,100), how to get the hlookat and use it in the onclick="lookat()"?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!