Hello,
I'm trying to change the polygon color with a variable but can't find the right way.
Here are some details of how I work.
I have the following variables:
polygon: (I put the name of the polygon in this variable) eg: poly01
polygo_color: (I put the color of the polygon in this variable) eg: #40ff0000/#ffff0000
I do an action like the following image and the color does not change.
Is it possible to change the polygon color with variables?
How to assign a Polygon color with a variable?
- Hopki
- Gnome
- Posts: 13022
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Serge,
Use the Variable Changed trigger.
As the variable changes, this can then trigger the action to change the colour.
You can use an action filter so it only changes the colour when a variable is set to a certain value.
Regards,
Use the Variable Changed trigger.
As the variable changes, this can then trigger the action to change the colour.
You can use an action filter so it only changes the colour when a variable is set to a certain value.
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/
- Hopki
- Gnome
- Posts: 13022
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Serge,
Please see the attached project.
It has a Polygon Hotspot which is using the default colour blue.
The skin has a numbered variable and two buttons that can change it to 0 or 1.
There is a container that has two Variable Changed actions that both change the colour of the Polygon Hotspot.
However they both have action filters, so when the variable changes the action is triggered but depending on the variable value will determine which action will be triggered.
Regards,
Please see the attached project.
It has a Polygon Hotspot which is using the default colour blue.
The skin has a numbered variable and two buttons that can change it to 0 or 1.
There is a container that has two Variable Changed actions that both change the colour of the Polygon Hotspot.
However they both have action filters, so when the variable changes the action is triggered but depending on the variable value will determine which action will be triggered.
Regards,
- Attachments
-
- serge.zip
- (12.79 KiB) Downloaded 99 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/
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/
Hello,
I include an example of my project.
There is a menu to choose a color polygon. Eg: By pressing the blue button, the blue polygon flashes red and green to show me the choice. At the end of the blinking cycle the color of the polygon turns green.
I would like at the end of the blinking cycle, the polygon returns to its original color. In this example, I would like the polygon to return to its blue color.
I have over 40 polygons with different colors. I tried to assign a color to a variable but it doesn't work.
I'm out of ideas on this project!
I include an example of my project.
There is a menu to choose a color polygon. Eg: By pressing the blue button, the blue polygon flashes red and green to show me the choice. At the end of the blinking cycle the color of the polygon turns green.
I would like at the end of the blinking cycle, the polygon returns to its original color. In this example, I would like the polygon to return to its blue color.
I have over 40 polygons with different colors. I tried to assign a color to a variable but it doesn't work.
I'm out of ideas on this project!
Serge
Version: V7.01
Windows 10
Version: V7.01
Windows 10