# How to activate a layer via Python?

**URL:** <https://forum.glyphsapp.com/t/how-to-activate-a-layer-via-python/5358>\
**Category:** Scripting\
**Created:** [November 11, 2016, 8:46pm UTC](https://forum.glyphsapp.com/t/how-to-activate-a-layer-via-python/5358 "2016-11-11T20:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![TimAhrens](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/timahrens/32/4309_2.png) [@TimAhrens](https://forum.glyphsapp.com/u/TimAhrens)\
**Post date:** [November 15, 2016, 11:16am UTC](https://forum.glyphsapp.com/t/how-to-activate-a-layer-via-python/5358/8 "2016-11-15T11:16:57Z")

</div>

I realise we had that discussion before:

> [@Changing Masters doesn't correspond with correct selection in Layers Palette](https://forum.glyphsapp.com/t/changing-masters-doesnt-correspond-with-correct-selection-in-layers-palette/4457/1):
>
> See this video [http://quick.as/2yG5TpPJk](http://quick.as/2yG5TpPJk) I’m clicking around the buttons at the top but it jumps around and is not correct. It’s the same if I use Alt+[0…9]

Sorry, I still don’t see a realistic scenario in which the current behaviour is better, and I see a lot of uses in which it would be be better to always make Cmd+1 switch to the first master.

Georg, can you explain why you think the current behaviour is better?

---

_[View the full topic](https://forum.glyphsapp.com/t/how-to-activate-a-layer-via-python/5358)._
