# Call surface registration in python script

**URL:** <https://discourse.slicer.org/t/call-surface-registration-in-python-script/16961>\
**Category:** Development\
**Tags:** registration, python\
**Created:** [April 6, 2021, 9:39am UTC](https://discourse.slicer.org/t/call-surface-registration-in-python-script/16961 "2021-04-06T09:39:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertoruizmu](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@robertoruizmu](https://discourse.slicer.org/u/robertoruizmu)\
**Post date:** [April 6, 2021, 9:39am UTC](https://discourse.slicer.org/t/call-surface-registration-in-python-script/16961/1 "2021-04-06T09:39:39Z")

</div>

Hi everyone!  
I´m trying surface registration on CMF extension . I would like to know if there is anyway to call that function in a scrip in python , I mean, without opening slicer , call surface registration .

Thanks !

---

<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:** [April 9, 2021, 1:26am UTC](https://discourse.slicer.org/t/call-surface-registration-in-python-script/16961/2 "2021-04-09T01:26:07Z")

</div>

All modules can be used from Python. [Developer tutorials](https://slicer.readthedocs.io/en/latest/developer_guide/api.html#tutorials) should give you a general idea of how things work. Then, if you have questions about how to use a specific module then describe what you tried and what problems you ran into.

---

<div class="post-metadata">

**Author:** ![Veronique\_Bouvette](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/veronique_bouvette/32/70017_2.png) [@Veronique\_Bouvette](https://discourse.slicer.org/u/Veronique_Bouvette)\
**Post date:** [April 11, 2024, 7:45pm UTC](https://discourse.slicer.org/t/call-surface-registration-in-python-script/16961/3 "2024-04-11T19:45:02Z")

</div>

@robertoruizmu hi! I tried multiple things but it did not work out for me… I always get a no “hardenModelID” attribute error. Did you succeed in making a surface registration from python command with fixedModel and movingModel?

Thank You
