Although @Manysounds was answering a different question I think his post answers your question to a degree, maybe without actually providing code, which would have been even better. I haven’t read the whole thread.