AEIO_UserOptionsDialog

Hello

I NOAE project for windows, and I want to bring to macintosh

On windows, there is a function AEIO_FunctionBlock4::AEIO_UserOptionsDialog()

and I'm looking for a similar code for macintosh? What is the way to do it? I have not found

in the examples of the UI in the SDK

My code is like this:

BOOL DialogProc (HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)

{

Switch (message)

{

case WM_INITDIALOG:

CheckDlgButton (hwndDlg, IDC_FLATTEN, (WPARAM) g_header.bFlattenIndexed);

CheckDlgButton (hwndDlg, IDC_LZW, (WPARAM) g_header.bLZW);

CheckDlgButton (hwndDlg, IDC_GEN_MIPMAPS, (WPARAM) g_header.bGenerateMipmaps);

CheckDlgButton (hwndDlg, IDC_SAVE_ORIGINAL, (WPARAM) g_header.bSaveOrig);

CheckDlgButton (hwndDlg, IDC_HIGH_QUALITY_DXT, (WPARAM) g_header.bHighQualityDXT);

CheckRadioButton (hwndDlg, IDC_FORMAT_RAW, IDC_FORMAT_DXT5, g_header.iFormat);

Return TRUE;

case WM_COMMAND:

Switch (LOWORD (wParam))

{

case IDOK:

g_header.bFlattenIndexed = IsDlgButtonChecked (hwndDlg, IDC_FLATTEN);

g_header.bLZW = IsDlgButtonChecked (hwndDlg, IDC_LZW);

g_header.bGenerateMipmaps = IsDlgButtonChecked (hwndDlg, IDC_GEN_MIPMAPS);

g_header.bSaveOrig = IsDlgButtonChecked (hwndDlg, IDC_SAVE_ORIGINAL);

g_header.bHighQualityDXT = IsDlgButtonChecked (hwndDlg, IDC_HIGH_QUALITY_DXT);

If (IsDlgButtonChecked (hwndDlg, IDC_FORMAT_RAW))

g_header.iFormat = IDC_FORMAT_RAW;

ElseIf (IsDlgButtonChecked (hwndDlg, IDC_FORMAT_DXT1))

g_header.iFormat = IDC_FORMAT_DXT1;

on the other

g_header.iFormat = IDC_FORMAT_DXT5;

EndDialog (hwndDlg, IDOK);

break;

case IDCANCEL:

EndDialog (hwndDlg, IDCANCEL);

break;

}

break;

by default:

return FALSE;.

}

Return TRUE;

}

static A_Err

() VBNIO_UserOptionsDialog

AEIO_BasicData * basic_dataP,.

AEIO_OutSpecH mouth,

const PF_EffectWorld * sample0,.

A_Boolean * user_interacted0)

{

A_Err err = A_Err_NONE;

VBNIO_FileHeader * headerP = NULL;

AEGP_SuiteHandler suites (basic_dataP-> pica_basicP);

AEIO_Handle optionsH = NULL;

AEIO_Handle old_optionsH = NULL;

ERR = suites. IOOutSuite4()-> AEGP_GetOutSpecOptionsHandle (mouth, (void *) & optionsH);

If (err |! optionsH)

return err;

ERR = suites. MemorySuite1()-> AEGP_LockMemHandle (optionsH, (void *) & headerP);

If (err |! headerP)

return err;

g_header = * headerP;

If (DialogBox (GetModuleHandle ("VBNIO.aex"),

MAKEINTRESOURCE (IDD_VBN_DIALOG),

NULL,

(DLGPROC) (DialogProc) == IDOK) {}

A_long width, height;

Suites. IOOutSuite4()-> AEGP_GetOutSpecDimensions (mouth, & width and height);

If ((g_header.iFormat == IDC_FORMAT_DXT1 || g_header.iFormat == IDC_FORMAT_DXT5) & &)

(% de largeur 4! = 0 || hauteur % 4! = 0)) {

basic_dataP-> msg_func (0, "width and height must be multiples of 4.") Do not save the changes option. ») ;

Suites. MemorySuite1()-> AEGP_UnlockMemHandle (optionsH);

Return AEIO_Err_INCONSISTENT_PARAMETERS;

}

* headerP = g_header;

* user_interacted0 = TRUE;

}

Suites. MemorySuite1()-> AEGP_UnlockMemHandle (optionsH);

return err;

};

If I read you correctly, you wonder how to open a native osx window?

If so, scroll waaaaay on this discussion. It has a few code samples

links for cocoa and carbon:

https://forums.Adobe.com/thread/559946?TSTART=0

You can also open a window in javascript using AEGP_ExecuteScript(), which

uses the same code for both windows and osx.

Tags: After Effects

Similar Questions

Maybe you are looking for

  • Faces of people vs El Capitan Sierra

    I'm on El Capitan and using the faces in the Photos.  These faces have been updated and organized over the past 8 years.  When I switch to Sierra, who goes to work?  The faces will be migrated to the people?  Or will exist people and faces?

  • Any way to install the Google search without Add-ons?

    Firefox (at least on the version of Linux) does not include the default Google search engine. She also cannot be manually installed by navigating to google.com because it does not "add a search engine" in the pull down menu in the search bar. (I'm no

  • 490 EVENT ID

    In the event log, I noticed a few errors for ESENT: Event type: errorEvent source: ESENTEvent category: generalEvent ID: 490Date: 12/03/2010Time: 23:03:01User: n/aComputer: NAUJASDescription:Svchost (1176) an attempt to open the file "C:\WINDOWS\syst

  • Why can't I download pictures from my phone to my pc i

    whenever I try to get pictures of my i phone 4 on my pc my computer says that my phone is in use

  • HP 6700: Win 10 HP Scan and Capture will not install

    I'm trying to install scanning and Capture from the Windows store, but it hangs just for long periods of time to say 'work' and doesn't seem to install it.  I tried to restart, the store told me I had the app and can install it, but when I press the