Macros based on key

I think you want the PrefixLayers plugin:

Though, that might not be updated for the v2 plugin API yet… I guess I’ll have to submit a PR to move it forward. The plugin does precisely what you wish to do :slight_smile: