4/2/2024 7:14 PM | |
Joined: 1/21/2013 Last visit: 1/24/2025 Posts: 3462 Rating: (543)
|
Hi Dav3i, You assign a dynamic HoverColor attribute to the path element. However, the path element does not have such an attribute. I am pretty sure that it is not possible to create a hover effect with a dynamic SVG graphic within WinCC Unified. This would require animations or at least CSS definitions, but these SVG features are currently not supported by WinCC Unified. Regarding a guide to dynamic SVGs, you have already found the thread where Jen_Moderator informed about a tool that is planned, and maybe you have already followed the link to a document that was once posted in the forum. Kind regards |
4/2/2024 11:50 PM | |
Joined: 11/4/2021 Last visit: 4/19/2024 Posts: 64 Rating: (33) |
Animations are not supported but hmi-events and him-action bindings can be used to achieve the same effect. As Stefan indicated you need a local property definition to change the fill color dynamically. Here is a working example based on your original code. Tested in simulation.
This is based on the BasicButton example previously posted here: https://support.industry.siemens.com/forum/au/en/posts/flat-style-buttons/273722 In the above post you'll also find a list of the svg events that you can bind to. For instance, by using the pan event you can actually dynamically drag an element of a svg around it's container or even the entire svg itself. This post contains an example svg and video: https://support.industry.siemens.com/forum/au/en/posts/get-position-of-actual-screen-press/281660 There are other bits and pieces around the forum on what can be done with dynamics svgs, you might find something else useful with a few searches. |
Last edited by: MBerghauser at: 04/02/2024 23:51:54 |
|
This contribution was helpful to2 thankful Users |
Follow us on