# Accessing logic() of own ScriptedLoadableModule

**URL:** <https://discourse.slicer.org/t/accessing-logic-of-own-scriptedloadablemodule/3331>\
**Category:** Development\
**Tags:** extensions-manager\
**Created:** [June 28, 2018, 8:28pm UTC](https://discourse.slicer.org/t/accessing-logic-of-own-scriptedloadablemodule/3331 "2018-06-28T20:28:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://discourse.slicer.org/u/basti)\
**Post date:** [June 28, 2018, 8:28pm UTC](https://discourse.slicer.org/t/accessing-logic-of-own-scriptedloadablemodule/3331/1 "2018-06-28T20:28:02Z")

</div>

I’m trying to access a method in the logic class of a ScriptedLoadableModule I created and loaded into slicer.  
The custom module is listed in slicer.modules, but in slicer.modules.CUSTOMMODULE.logic() I can’t access the specific methods of the module.

Is there a way to solve this?  
Thanks a lot, Sebastian

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 29, 2018, 3:20pm UTC](https://discourse.slicer.org/t/accessing-logic-of-own-scriptedloadablemodule/3331/2 "2018-06-29T15:20:53Z")

</div>

Hi Sebastien -

You can do something like this:

```auto
>>> import BitmapGenerator
>>> l = BitmapGenerator.BitmapGeneratorLogic()
>>> l.generate()

```

FYI slicer.modules./module/.logic() is a lower level internal module that hooks your scripted code into the rest of Slicer.

-Steve
