Is it possible to use multiple variables in one Logic Block or Action Settings block?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
EVerheggen
Posts: 65
Joined: Wed Feb 05, 2020 12:16 pm
Location: Netherlands
Contact:

Hi,

I can't find any information about what is all possible with variables in the Expert mode of Actions or in Logic Blocks.

I watched all the tutorials, but the only combination with variables I saw was combining text strings (as in the quiz in video "Variables and Logic Blocks part 3").
Also the information on https://ggnome.com/doc/skin-props/#variables does not bring what I am looking for. The link ✭ Learn more about Variables does not have any information about the possibilities within Pano2VR.

Reason: I want to compare variables with each other.

Example one:
In a Logic Block "Value" has to be a number. I would like an other variable in there.
So it would be possible to have something equivalent to:
IF variable1 > variable2 THEN ....
screenshot.jpg
screenshot.jpg (40.24 KiB) Viewed 589 times



Example two:

Also in Action Settings - Expert mode, it is not possible to use variables in the Value field.
screenshot 2.jpg
screenshot 2.jpg (32.41 KiB) Viewed 589 times




Is there a way to use multiple variables to do basic calculations and logic?


Best regards,

Erik Verheggen
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Erik,
This is possible in Pano2VR 7.

Screenshot 2023-02-05 at 21.53.47.png
Screenshot 2023-02-05 at 21.53.47.png (69.25 KiB) Viewed 580 times

In the above screenshot you see the trigger is the first variable and it is being compared to the second variable.
You left button click to show the options.
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/
User avatar
EVerheggen
Posts: 65
Joined: Wed Feb 05, 2020 12:16 pm
Location: Netherlands
Contact:

This was exactly what I was looking for! Thanks Martin for the quick reply.


Is there also a way to convert a text variable to a number (and the other way around)?
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
What's your use case?
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/
Post Reply