Yes, the mop already exists and is (pre-)set, at least inherited from actual selected Cam-Style
The result shoud be the same as clicking around :
1. select the entities
2. click Profile, Pocket, Engrave ... then all data is preset.
3. change values you want to change.
The plugin shall
1. select all entites of a layer
2. create a new mop depending on layername´s content
3. change some values depending on layername´s content
4. Add the the Mop to the active part
What happens if the value has not been set ?
This should be impossible. Values are inherited from the selected CAM Style, at least the unnamed in "standard-mm"