You are not logged in.

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

21

Wednesday, March 9th 2011, 2:51pm

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

Wednesday, May 18th 2011, 2:16am

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

Source code

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


Then trying to call it:

Source code

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:

Source code

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?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

23

Thursday, May 19th 2011, 2:03am

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:

Source code

1
action(actionname, parameters...);

now also just:

Source code

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

Source code

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


SAlut.

floz

Trainee

Posts: 109

Location: Uppsala, Sweden

  • Send private message

24

Thursday, July 5th 2012, 1:36am

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:


Source code

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

25

Friday, April 15th 2016, 10:30am

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???