Page 1 of 1

pop up image from hotspot position

Posted: Mon Feb 26, 2018 11:37 am
by oli
Hi,

I would like to pop up an image (scale from 0) from the hotspot position and not from the center of the screen. I managed to have the scale animation (from scale 0 to scale 100) but cannot make it scale from the hotspot position.
I use the ht_image and image_popup which I modified a little to have a scale animation. The problem is that I cannot retrieve the position of the hotspot which has been clicked. I want the pop up image come from the hotspot position to position itself in the center of the screen. What function or variable could I use to retrieve the actual position of the hotspot to make the pop up image come from the hotspot position when scaling from 0 to 100% ?

edit:
I tried Action (position, set element position) on mouseclick (on the ht_image) with target (image_popup) and as offset value : ($ht_image(X)(/($ht_image(Y))
but does not work...

thanks

Re: pop up image from hotspot position

Posted: Mon Feb 26, 2018 10:58 pm
by Hopki
Hi Oli,
As you have seen you can not do this with the skin popup as the skin will not know where the hotspot will be at any given moment.
A pinned image can do this but its added to the pano not through the skin.
Ill run this past the developers and see what they say.
Regards,
Hopki

Re: pop up image from hotspot position

Posted: Wed Feb 28, 2018 10:43 am
by oli
thanks Hopki,

Do you think we could check the mouse position when hotspot is clicked and then pass this position to the image which would pop up from that position?
I tried but cannot stop the image to follow the mouse position. Maybe with a variable which would check when the hotspot has been clicked and then stop the mouse position... I really don't know....

Re: pop up image from hotspot position

Posted: Wed Feb 28, 2018 3:22 pm
by Hopki
Hi Oli,
You could have the image popup a child of the hotspot so it shows wherever the hotspot is.
If you use a screen tint this will stop interaction with the pano until the image is closed.
Regards,
Hopki

Re: pop up image from hotspot position

Posted: Wed Feb 28, 2018 4:55 pm
by oli
thanks Hopki,

I think I will stick with the hotspot pop up image even if it does not pop up from the hotspot itself. Thanks for your help.