# Moving between two points with a slider control - interpolate

**URL:** <https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448>\
**Category:** URCap Development\
**Tags:** interpolate\
**Created:** [June 4, 2019, 3:08pm UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448 "2019-06-04T15:08:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [June 5, 2019, 6:32am UTC](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448/2 "2019-06-05T06:32:36Z")

</div>

i think the script function interpolate\_pose should do the trick.  
it divides your Path from A to B with a specific alpha value.  
as alpha is a value of 0 to 1.0 you can just map your UI slider to the alpha value and use [ClientSendScript](https://forum.universal-robots.com/t/sample-send-script-with-button-push-urcap/1203) class to send a move command triggered by an ON\_CHANCE command by your UI slider.

---

_[View the full topic](https://forum.universal-robots.com/t/moving-between-two-points-with-a-slider-control-interpolate/4448)._
