Check out this post, I think that the code might work for what you are looking for, I haven’t tested it myself though.