Page 1 of 1

Two or more images

Posted: Thu Nov 09, 2023 1:08 pm
by Schubi
Hello,
I've got another little problem that I'm stuck on.
Procedure:
I have created a hotspot, which works quite well so far.
When I click on the hotspot, a box with information opens (see attachment). In this box I want to insert two different pictures, e.g. for a before and after comparison.
Unfortunately, I can only assign the path to one image file in the properties. Is there a way to insert a second image anyway?
Greetings

Re: Two or more images

Posted: Thu Nov 09, 2023 2:19 pm
by Hopki
HI,
If you are using Pano2VR 7 use Custom Properties, set to text.
You can have as many as you want then.
As you add the custom property it will have its own variable placeholder.
See: https://ggnome.com/doc/pano2vr/hotspots ... properties
Regards,

Re: Two or more images

Posted: Thu Nov 09, 2023 3:29 pm
by Schubi
Hello,
Thank you very much.
This means that I have to create variables in the skin, which I then link to the content (e.g. for content_image_image1 in the attachment) in order to specify the paths for the two images in the custom properties.

Re: Two or more images

Posted: Thu Nov 09, 2023 4:24 pm
by Hopki
Hi,
Please see the project attached.
All images are added to assets.

The Point Hotspot has two custom properties which automatically add them as variables to the skin, img_1 and img_2.

The Point Hotspot image has the actions to set the value to the text box for the description text.
Then two more Set Value actions to set the file path to the two external image loaders.

With this set-up, you can add different images to each point hotspot.
Regards,