# vtkSlicerMarkupsLogic methods from v4.8 missing from master version

**URL:** <https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418>\
**Category:** Development\
**Created:** [July 20, 2022, 6:17pm UTC](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418 "2022-07-20T18:17:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mosenco](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mosenco/32/16037_2.png) [@mosenco](https://discourse.slicer.org/u/mosenco)\
**Post date:** [July 20, 2022, 6:17pm UTC](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418/1 "2022-07-20T18:17:58Z")

</div>

I’m trying to upgrade the code of modules developed for slicer4.6 with python 2.7 into slicer5.0.3 with python3.9

All went good until i found out that some methods are missing in the new slicer version.

```auto
mlogic = slicer.modules.markups.logic()
  
mlogic.SetDefaultMarkupsDisplayNodeTextScale(1.3)
mlogic.SetDefaultMarkupsDisplayNodeGlyphScale(1.5)
mlogic.SetDefaultMarkupsDisplayNodeColor(0.39, 0.78, 0.78) 
mlogic.SetDefaultMarkupsDisplayNodeSelectedColor(0.39, 1.0, 0.39)

```

slicer gives me errors saying slicer.modules.markups.logic() doesnt have any of those methods. and that’s true! In slicer 5.0.3 all those methods are gone.

What can i do? Are those methods moved somewhere else with different names?

---

<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:** [July 20, 2022, 6:20pm UTC](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418/2 "2022-07-20T18:20:30Z")

</div>

See description of the API change here: [Documentation/Nightly/Developers/Tutorials/MigrationGuide - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide#Markups)

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [July 20, 2022, 7:39pm UTC](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418/3 "2022-07-20T19:39:48Z")

</div>

> - GetDefaultMarkups…() and SetDefaultMarkups…() methods are removed. Instead default display node can be accessed by GetDefaultMarkupsDisplayNode() method and default values can be get/set in that class.

```python
slicer.modules.markups.logic().GetDefaultMarkupsDisplayNode()

```
