Would you be kind enough to tell me whether I am right with my interpretation of the expression in bold in the following excerpt from a movie script?
About five kids applaud. Ray takes the podium.
RAY Thank you for having us.
We’ll each talk for ten minutes, then open it up to your questions.
Thank you for having us. = Thank you for your invitation.
Thanks for your efforts.
You're close, but I would say that it means "Thank you for allowing us to attend". In the UK, we are taught as children that at the end of a birthday party at someone's house, we must say "Thank you for having me".
Obviously, in some cases, there may have been an invitation which preceded the event, but not necessarily.