Sie sind nicht angemeldet.

21

Mittwoch, 9. März 2011, 14:51

jordi - first thing i wanted to say was great photography and i love the transition from pano to pano. that is something krpano is way behind on from FPP. Also your top bar inside the pano does not strech all the way to the edge on my 22" monitor. auditorium and shop are floating in the air.

i tend to use separate xmls for almost everything. it reduces load times. even though the hotspots and plugins inside the individual scene tags are not setup until that scene is loaded it all still has to be parsed from the start before anything happens.

22

Mittwoch, 18. Mai 2011, 02:16

hi.
I'm using demo version still, but...
I define some action

Quellcode

1
2
3
<action name="testa">
showtext(%1);
</action>


Then trying to call it:

Quellcode

1
<hotspot name="somespot" url="img/dymek.png" ath="-10.94" atv="3.62" scale="1" zoom="false" onclick="testa(supertest);" onhover="" />

and it's not working but:

Quellcode

1
<hotspot name="somespot" url="img/dymek.png" ath="-10.94"  atv="3.62" scale="1" zoom="false" onclick="action(testa,supertest);" onhover=""  />

works just fine.

What did i wrong?

23

Donnerstag, 19. Mai 2011, 02:03

Hi Kamilus,

Nothing wrong... the two ways to call an action are correct since krpano 1.0.8 beta 8

user defined actions <action> can now be called "direct"
e.g. instead of:

Quellcode

1
action(actionname, parameters...);

now also just:

Quellcode

1
actionname(parameters...);
is possible
Perhaps, it should be better to use onhover instead of onclick to call the showtext()

Quellcode

1
<hotspot name="somespot" url="img/dymek.png" ath="-10.94" atv="3.62" scale="1" zoom="false" onclick="" onhover="testa(supertest);" />


SAlut.

24

Donnerstag, 5. Juli 2012, 01:36

Thank so much @pinsane, very helpful!

Tiny little note (and I'm not trying to be a smart-a**, and this may not have been possible at the time of writing), but for square-rooting, you can simply use the pow() function:


Quellcode

1
2
pow(temp,2,.5);
trace(get(temp));

25

Freitag, 15. April 2016, 10:30

how can we use multiple plugin using functions??

how to use multiple plugin,events,actions using functions??
Can we use plugin and actions using functions???