You are not logged in.

1

Monday, March 3rd 2014, 6:17pm

programmatically remove points from polygonal hotspot

As far as I understand hotspot has point array which holds the location of vertices.

I can very easily add points to do array, but how do I remove points?

2

Friday, March 7th 2014, 4:27pm

Hi,

try:

Source code

1
hotspot[NAME].point.removearrayitem(INDEX_OR_NAME_OF_THE_ITEM_TO_REMOVE);


The 'removearrayitem' function is currently only documented here:
http://krpano.com/docu/plugininterface/#array

Best regards,
Klaus