Modifier Object

Hi Guys, I'm creating a max script modifier that works on cameras. I have created my camera and applied my modifier fine. The problem is I can apply the same modifier to a box or anything else. I would like to know how to isolate my modifier just to cameras.