You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, August 4th 2013, 10:03pm

How to add/remove points to/from polygonal hotspot?

Hello,

I am looking for a way to add and to remove points to/from poligonal hotspot from the code. I cannot use VUI via the editor.swf plugin.

There are functions to add/remove hotspots and layers objects but I cannot see the same for the point in the poligonal hotspot.
Is there a way to add remove points?

Kind Regards,
Dmitry.

2

Thursday, August 8th 2013, 2:54pm

Hi,

adding points is possible just by setting new points,
e.g.

Source code

1
2
3
copy(cnt, hotspot[spot].point.count);
set(hotspot[spot].point[get(cnt)].ath, ...);
set(hotspot[spot].point[get(cnt)].atv, ...);


and for removing the removearrayitem function could be used - e.g. to remove the 11. point use the 10 as 0-based index:

Source code

1
hotspot[spot].point.removearrayitem(10);


Best regards,
Klaus