Set variable value in Action Settings from the placeholder

Q&A about the latest versions
Post Reply
snowlexx
Posts: 48
Joined: Fri Dec 27, 2019 5:21 pm
Location: Россия

the variable value can be compared with the data from the placeholder in the settings of the logic block:
2023-04-24_08-50-45.png
2023-04-24_08-50-45.png (17.03 KiB) Viewed 2446 times
is it planned in the next versions of the program to add the ability to set the value of the variable from the placeholder in the action settings:
2023-04-24_08-52-15.png
2023-04-24_08-52-15.png (9.83 KiB) Viewed 2446 times
thanks
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Not sure I follow what you are asking.
But testing what I think you are asking is working.

My test was to have a User Data Custom Property, called Colour which uses a text variable called var_colour.
Then in the skin have a variable called var.

There is a rectangle that has a colour logic block that states that if var, = "Red" then the rectangle will turn red.
The Rectangle has the action:

Screenshot 2023-05-10 at 10.19.58.png
Screenshot 2023-05-10 at 10.19.58.png (39.27 KiB) Viewed 2405 times

The User Data Custom Property has the word Red.
On opening the output the action will set Set the variable value using the User Data Custom Property placeholder to the variable var.
This in turn will change the colour of the rectangle using its colour logic block.
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/
snowlexx
Posts: 48
Joined: Fri Dec 27, 2019 5:21 pm
Location: Россия

thank you very much. I understood. the variable type should not be a Number, but a Text so that a placeholder can be inserted.
however, I will not be able to operate with a text variable later - to increase or decrease its values
is it possible in the future to add the ability to assign values from the placeholder for numerical variables?
Post Reply