Lesson 18

Now, we will look at another command that will help you extract more information from your image, which is the GetRasterSelectionRect. We will also see how to use math with that information.

(27 minutes)

If this video is causing you issues, here is a copy on YouTube: https://youtu.be/jOasXnJgDFU (please, do not share)



Can you think of other situations where a selection might be present and you could use that information for the following steps?

One thing that can be useful is to determine if a text, created from the string asked to the user, is going to fit inside a particular shape or not. Think of the various Datestamp scripts where you might want to have some text that would be too long. This information will allow you to size it down OR let the user know that it is too long.

The forum thread is here.