Take a look the viz.pick command. When you're not picking with the mouse you can specify the position on screen to perform the pick. In your case that's the quad position. Register a callback function using vizact.onupdate that calls the pick command every frame. If an object is returned then apply the action to it.
|