I use great "Pie Menu Editor" addon and in the "command" section I would like to add command that adds a primitive object to the scene, but only to the active layer.
Default code that can be copied from the "Info" window allows to specify to which layers a new object can be assigned, but does not allow to specify the currently active one.
Thank you for Your advice