Action Menu Item: What does it expect to return in a modal overlay

In the past we’ve been using a protocol handler with shotgun AMIs to run python scripts locally on a user’s machine.
Recently, I’ve started playing around with the idea of moving some of our scripts (especially more visually-oriented ones) to actually open in the web browser but I’m frustrated with the lack of documentation about how to do that. For example:

  • What does shotgun need to receive from the post request in order to show up in a modal window? I am able to return a html page in a new tab with the request data but it always opens in a new tab even when I set that AMI to modal overlay.

Are there any resources or examples of how to use this? Can someone help me or show me some examples of working versions of this.
Thanks so much!

5 Likes

Hi Jase,

Have you had a chance to check out our developer videos?

The Video I’m thinking of goes over setting up and troubleshooting AMI’s and the gotcha’s around it;

Raphe goes over quite a few examples, let us know if it had the info you were looking for!

6 Likes

Thanks! I’ll check these out tomorrow. Hopefully that’s exactly what I’m looking for.

5 Likes

That was definitely helpful but he never touched on the modal overlay question. Maybe it’s not a big deal to open in a new tab but I have been wondering how to get that feature to work.

Thanks!
-Jase

1 Like

IIRC the modal overlay is implemented via an iFrame which means your content needs to be https in order for it to be loaded by your hosted site which is served securely as well.

6 Likes

Got it. That must be the issue since I’m testing with a site that’s locally hosted and wouldn’t have https.

1 Like