# Smoothing Factor from Python

**URL:** <https://discourse.slicer.org/t/smoothing-factor-from-python/40550>\
**Category:** Support\
**Created:** [December 7, 2024, 3:23am UTC](https://discourse.slicer.org/t/smoothing-factor-from-python/40550 "2024-12-07T03:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filippo\_Parronchi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/filippo_parronchi/32/77852_2.png) [@Filippo\_Parronchi](https://discourse.slicer.org/u/Filippo_Parronchi)\
**Post date:** [December 7, 2024, 3:23am UTC](https://discourse.slicer.org/t/smoothing-factor-from-python/40550/1 "2024-12-07T03:23:44Z")

</div>

Hello everyone!  
I would like to know how to modify the “smoothing factor” (available in the dropdown menu of the “Show3D” button) for a segment of my segmentation node using a Python script, through logic and NOT the widget representation (if needed).  
I need this to get a model from segment with perfect smoothing

Thanks for help !

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [December 9, 2024, 9:53am UTC](https://discourse.slicer.org/t/smoothing-factor-from-python/40550/2 "2024-12-09T09:53:38Z")

</div>

You can find a sample snippet in the script repository:  
[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#re-convert-using-a-modified-conversion-parameter](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#re-convert-using-a-modified-conversion-parameter)
