Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-02-15 04:01 AM . Last Modified: 2021-02-15 04:03 AM
I have a rectangle which has to be vertically filled depending on an analogue value. Rectangle's default filling range is 0-100. I couldn't find any setting in Fill level section where to change this range.
I thought that Vertical scale value is what I need to change, but I was wrong. Instead of 0-100, I need 0-50. Can, please, anybody tell me how can I change this range?
Many thanks in advance!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-02-15 05:38 PM . Last Modified: 2021-02-15 06:30 PM
Hello @jhonut ,
Sounds like a great use case for a scale converter. The vertical fill is always 0-100%.
Create a scale converter with a source range of 0-50. Output Range of 0-100.
When selecting the variable for fill animation, turn on the converter check box, choose "One Way", and select the scale converter you created.
Here is a link to a sample project: Vertical Fill Animation - Scale Converter for Custom Range.vxdz
Let me know if this method works for you.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-02-15 05:38 PM . Last Modified: 2021-02-15 06:30 PM
Hello @jhonut ,
Sounds like a great use case for a scale converter. The vertical fill is always 0-100%.
Create a scale converter with a source range of 0-50. Output Range of 0-100.
When selecting the variable for fill animation, turn on the converter check box, choose "One Way", and select the scale converter you created.
Here is a link to a sample project: Vertical Fill Animation - Scale Converter for Custom Range.vxdz
Let me know if this method works for you.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-02-16 01:50 AM
@Thanks for your solution, @Paul_Derbyshire! This is exactly what I was looking for!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.