If I misunderstood your question, perhaps some cod...
# general
r
If I misunderstood your question, perhaps some code for what you are trying to do would help.