Page 1 of 1

store current pan and tilt info?

Posted: Mon Dec 07, 2009 8:25 am
by lbmbrian
i would like to load a second pano in flash based on the current pan and tilt position of the current pano, can this be done?

Re: store current pan and tilt info?

Posted: Wed Dec 09, 2009 5:49 am
by lbmbrian
searching through the forums, it looks like i found what could be a possible solution, but she don't work:

var currentPan:Number = FirstPanorama.pan.getPan();

the error message i get it 1119: Access of a possibly undefined property pan through a reference with static type String

my thoughts are that on the button click to load the next pano, i would use a line similar to this?

secondPanorama.pan.setPan(currentPan);

any ideas?

Re: store current pan and tilt info?

Posted: Wed Dec 09, 2009 8:46 am
by smooth
This is a feature of Pano2VR the replacement program of the now discontinued Pano2QTVR-Flash Pack program.

Regards, Smooth 8)

Re: store current pan and tilt info?

Posted: Wed Dec 09, 2009 10:58 am
by lbmbrian
thanks smooth, pano2vr is the software i have, i didn't realize i had posted this in the wrong forum

Re: store current pan and tilt info?

Posted: Wed Dec 09, 2009 4:19 pm
by smooth
From within the Skin Editor using Pano2VR you can do the following:

http://gardengnomesoftware.com/wiki/Skin_-_Placeholder

You need to use:

$ap = current pan angle
$at = current tilt angle
$af = current field of view
or the undocumented:
$cur

Regards, Smooth 8)