# How can I interact with the slicer internal implementation functions?

**URL:** <https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27056>\
**Category:** Development\
**Tags:** python, extensions\
**Created:** [January 5, 2023, 1:50pm UTC](https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27056 "2023-01-05T13:50:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsa934](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dsa934/32/17907_2.png) [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Post date:** [January 5, 2023, 1:50pm UTC](https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27056/1 "2023-01-05T13:50:41Z")

</div>

Operating system: window 11  
Slicer version: slicer 4.13.0  
Expected behavior: python module extention  
Actual behavior:

Hi, I am a newbie in 3D image processing.

What I’d like to do is:  
I want to extend the Python module file I made to 3D slicer.  
However, this module needs to interact with several functions inside the 3D slicer.

List of necessary 3D slicer internal functions

1. When an image is added to 3d slicer, load the corresponding image variable.
2. I want to import point (x,y,z) information that is marked through 3d sclier’s markups function.

In order to access the above two functions through my module function, please let me know the function name or method that I need to refer to.

e.g ) from somewhere\_in\_3d\_sclier\_functinos import \*bring\_data\_function, \*bring\_position\_function

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [January 5, 2023, 2:06pm UTC](https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27056/2 "2023-01-05T14:06:49Z")

</div>

The [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html) should get you started. There are good examples of the solution for both of your problems. Please also consult chatGPT.
