# Dynamic Carets on Linear Scale

**URL:** <https://forum.inductiveautomation.com/t/dynamic-carets-on-linear-scale/95844>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 11, 2024, 12:14pm UTC](https://forum.inductiveautomation.com/t/dynamic-carets-on-linear-scale/95844 "2024-09-11T12:14:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tracy\_Toth](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@Tracy\_Toth](https://forum.inductiveautomation.com/u/Tracy_Toth)\
**Post date:** [September 11, 2024, 12:14pm UTC](https://forum.inductiveautomation.com/t/dynamic-carets-on-linear-scale/95844/1 "2024-09-11T12:14:09Z")

</div>

I have a project with ~ 30 servo drives. Each servo has a linear scale showing the actual position, and another linear scale showing the actual force. I am trying to add carets to each linear scale that show some of the positions and I have been successful in using an indirect tag on the template to show ONE of the positions. I have two problems/questions.

1. Each drive has a different amount of positions ranging from 2 - 15. I am creating the carets in the template so would I have to create 15 on all since this is the max? I tried to use a static value for the extra positions that aren't used on certain drives that is outside of the scale value so they don't show up but this is tedious and I think there must be a better way.
2. The same template is used for Force and Position. This means the base amount of carets that I need for positions (15) would be part of the Force display as well, and there are even less forces. Each drive would only have 2 force values, so what would I do with the other carets?

I am still new to ignition so any help is appreciated! TIA

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 11, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/dynamic-carets-on-linear-scale/95844/2 "2024-09-11T14:58:55Z")

</div>

> [@Tracy\_Toth](#):
>
> I am creating the carets in the template so would I have to create 15 on all since this is the max?

Can you show what you are calling a"caret".

In theory you can easily generalize this, though I would be tempted to use a paintable canvas in this instance, though that may be overkill. I don't understand enough of what you are looking for and how you are currently trying to achieve to offer up much assistance that I trust would answer you issues.

It wouldn't be very difficult to send a count parameter to the template to "hide" the carets that are unused.
