Skip to main content
New Participant
September 9, 2013
Question

can popup mfc dialog from plugin in PF_Cmd_DO_DIALOG?

  • September 9, 2013
  • 1 reply
  • 1633 views

how to popup mfc dialog from plugin in PF_Cmd_DO_DIALOG command?

there are too many parameter to adjust,

so what to use popup dialog to show the solo parameters.

is there any way?

This topic has been closed for replies.

1 reply

Community Expert
September 11, 2013

hi alexeange!

welcome to the forum, where's there's plenty of bad news from everyone!

actually it's not that difficult.

you can use whatever API you like to open a window. (as long as it's modal)

you can use MFC, QT, WinApi, or... anything really. the DO_DIALOG is just a call. nothing special about it.

what's the easiest way?

use javascript along with ExecuteScript().

the script text is internal to your plug-in and the user can't see it.

the following thread shows how to do that, and how to retreive results:

http://forums.adobe.com/message/3625857#3625857#3625857

TADA!

:-)

Brainiac
January 3, 2014

What if I wanted to display a web page in the popup window?  What would be the best cross-OS method to implement that?  I know that ExtendScript popups / dialogs do not allow for the display of HTML, so I don't think a simple script will do the trick.  Can you recommend a library for handling this that works on both windows and osx?

Community Expert
January 3, 2014

Hey Shachar,

I have seen those posts, but there would be no way to get data the user enters into the HTML that appears in the browser window back into AE automatically.  I was hoping there would be a way to get data back into AE from the webpage.  I thought that embedding a Flash object that had an HTML "window" could do the trick and using an ExternalInterface call, but that seems to be broken in CC as found here. 

http://forums.adobe.com/message/5974361

So, I thought I would go the hardcore route and try to code it up in C++.  I just don't know how to accomplish it with C++ and thought maybe there are some libraries Microsoft and Apple have that I can use?

Arie


sorry arie, i haven't a clue.

i did some http work a couple of years ago, but that was against some

specially made component in a custom website.

you can use libcurl on both pc and mac for http calls, but i don't know how

you can easily display a web page in a window without doing some os

specific work, or using the mentioned interface libraries.