Welcome to the community, @adamsurvey! Maybe this post discussed previously should help you build up on what you are trying to achieve: