# How to resample curve nodes programmatically?

**URL:** https://discourse.slicer.org/t/how-to-resample-curve-nodes-programmatically/16395
**Category:** Development
**Created:** [March 5, 2021, 6:43pm UTC](https://discourse.slicer.org/t/how-to-resample-curve-nodes-programmatically/16395 "2021-03-05T18:43:34Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [March 5, 2021, 7:23pm UTC](https://discourse.slicer.org/t/how-to-resample-curve-nodes-programmatically/16395/4 "2021-03-05T19:23:53Z")

</div>

For example, if name of your curve node is “C” then you can resample at 10mm sampling distance like this:

```python
getNode('C').ResampleCurveWorld(10)

```

---

_[View the full topic](https://discourse.slicer.org/t/how-to-resample-curve-nodes-programmatically/16395)._
