Two or more images

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Schubi
Posts: 23
Joined: Fri Feb 24, 2023 3:18 pm

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
Attachments
Two_images_in_one_box.PNG
Two_images_in_one_box.PNG (34.05 KiB) Viewed 17204 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Schubi
Posts: 23
Joined: Fri Feb 24, 2023 3:18 pm

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.
Attachments
Two_images_in_one_box_skin.PNG
Two_images_in_one_box_skin.PNG (74.63 KiB) Viewed 17192 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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,
Attachments
project.zip
(19.92 KiB) Downloaded 238 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply