How to generate effect form specific area of project

Hi, I’m wanting to figure out how to have an effect from a certain area of a project whether in the project or from real world object similar to roelofnols work!

example here

https://www.instagram.com/p/B-Z13YSH46J/?igsh=MW5wanBjM21pZjh6eA==

There are many ways, you can use device trackers, markers, or camera vision to isolate the objects. It really depends on the technology you want to use or have access to. Perhaps start by looking up camera object tracking and learn a few of the methods used there to see if any approaches would work for you.