Destiny wrote:The opportunity to edit the xml code is the true power of ptp....
kevshu wrote:I'm using the following for this tour: http://exposedbykevin.com/index.php/360viewer/oil-barons-dream-home.html
In the Main xml file at the top.
- Code: Select all
<krpano version="1.0.8.14" logkey="false" onstart="bombtimer(0)">
<action name="mainloadpano">
closepanoobjects();
closeglobalobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
</action>
<events onmousedown=" set(bt,0); "/>
<events onkeydown=" set(bt,0); "/>
<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 60, set(bt,0); nextscene();, );
</action>
<action name="nextscene">
set(bt,0);
loadpano(get(nextpano),NULL,NULL,BLEND(1));
</action>
In the individual pano xml files I added the set(nextpano,xml file name) line to the onxmlcompleteaction, and manually enter the next pano name.
- Code: Select all
<action name="onxmlcompleteaction">
set(nextpano,vrt_obdh1.xml);
firstloadcompleteaction();
</action>
There's probably a better way to use a list/array of variables in the main xml and just move through the list.
If you want to use the lookat commands, you need them in the index0+.xml files and leave the index.xml untouched. I found the lookat commands a pain, so I use a timer and auto rotation.
I hope that helps.
<krpano version="1.0.8.14" logkey="false" onstart="startaction() ; bombtimer(0)">
<action name="startaction">
set(laststackthumbindex, get(stackthumb.count));
dec(laststackthumbindex);
buildstackthumbs(0, laststackthumbindex);
</action>
<action name="mainloadpano">
closepanoobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
</action>
<events onmousedown=" set(bt,0); "/>
<events onkeydown=" set(bt,0); "/>
<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 60, set(bt,0); nextscene();, );
</action>
<action name="nextscene">
set(bt,0);
loadpano(get(nextpano),NULL,NULL,BLEND(1));
</action>
Ramà³n wrote:Autotour works, but not working radar map. Anyone know where the error
thanks.
Ramon Jimenez
bancoimagenes360
kevshu wrote:I'm using the following for this tour: http://exposedbykevin.com/index.php/360viewer/oil-barons-dream-home.html
In the Main xml file at the top.
- Code: Select all
<krpano version="1.0.8.14" logkey="false" onstart="bombtimer(0)">
<action name="mainloadpano">
closepanoobjects();
closeglobalobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
</action>
<events onmousedown=" set(bt,0); "/>
<events onkeydown=" set(bt,0); "/>
<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 60, set(bt,0); nextscene();, );
</action>
<action name="nextscene">
set(bt,0);
loadpano(get(nextpano),NULL,NULL,BLEND(1));
</action>
In the individual pano xml files I added the set(nextpano,xml file name) line to the onxmlcompleteaction, and manually enter the next pano name.
- Code: Select all
<action name="onxmlcompleteaction">
set(nextpano,vrt_obdh1.xml);
firstloadcompleteaction();
</action>
There's probably a better way to use a list/array of variables in the main xml and just move through the list.
If you want to use the lookat commands, you need them in the index0+.xml files and leave the index.xml untouched. I found the lookat commands a pain, so I use a timer and auto rotation.
I hope that helps.
Code:
<krpano version="1.0.8.14" logkey="false" onstart="bombtimer(0)">
<action name="mainloadpano">
closepanoobjects();
closeglobalobjects();
ifnot(stopSequence === undefined,interruptAnimation(););
loadpano(%1,NULL,NULL,BLEND(1));
</action>
<events onmousedown=" set(bt,0); "/>
<events onkeydown=" set(bt,0); "/>
<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 60, set(bt,0); nextscene();, );
</action>
<action name="nextscene">
set(bt,0);
loadpano(get(nextpano),NULL,NULL,BLEND(1));
</action>
<action name="onxmlcompleteaction">
set(nextpano,yourfilename.xml);
firstloadcompleteaction();
</action>
Users browsing this forum: No registered users and 2 guests