Code: Select all
msPrintSwitchLayers.moho = moho
msPrintSwitchLayers:ProcessTopLayers()
that was unclear to me. I would have gladly done it, because I was only seeking to explain what I am meant by recipe when I opened the thread, and why I use self.moho in my code. In no way am I seeking to deny ways to improve things. I'll leave my previous recipe post unedited, so readers can follow your suggestions for improvement.
For readers, here's the actual call I have in my running script
Code: Select all
function msPrintSwitchLayers:Run(moho)
self.moho = moho
self:ProcessAllTopLayers()
end