@Jihad-Hamo If your object is a red horizontal line, for example, you can do it this way:

01.png