Not sure if this is exactly what you’re asking, but check out this recent thread for some ideas of how to do what (I think) you’re trying to do:
Not sure if this is exactly what you’re asking, but check out this recent thread for some ideas of how to do what (I think) you’re trying to do: