Set variable value in Action Settings from the placeholder
the variable value can be compared with the data from the placeholder in the settings of the logic block:
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:
thanks- 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:
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,
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:
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/
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/
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?
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?