# Shortcut for Sphere brush

**URL:** <https://discourse.slicer.org/t/shortcut-for-sphere-brush/13460>\
**Category:** Support\
**Created:** [September 12, 2020, 3:00pm UTC](https://discourse.slicer.org/t/shortcut-for-sphere-brush/13460 "2020-09-12T15:00:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 17, 2020, 3:37am UTC](https://discourse.slicer.org/t/shortcut-for-sphere-brush/13460/2 "2020-09-17T03:37:32Z")

</div>

Instead of creating a new widget, refer to the Segment Editor module’s widget:

```auto
segmentEditorWidget = slicer.modules.segmenteditor.widgetRepresentation().self().editor
paintEffect = segmentEditorWidget.effectByName("Paint")
paintEffect.setCommonParameter("BrushSphere", 1) # enable
paintEffect.setCommonParameter("BrushSphere", 0) # disable

```

---

_[View the full topic](https://discourse.slicer.org/t/shortcut-for-sphere-brush/13460)._
