• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Limit the Plug In to Premier Pro Only

Participant ,
Jul 19, 2015 Jul 19, 2015

Copy link to clipboard

Copied

Hello,

I'm working on a Plug In using AEX from.

I want the Plug In to show and work on Premier only.

Yet I can make it not to work on After Effects but it would be shown on the Menu in After Effects.

What can I do to make only Premier to recognize it?

Thank You.

TOPICS
SDK

Views

672

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Jul 20, 2015 Jul 20, 2015

Ah that's because AE loads plug-ins based on the PiPL, without calling PF_Cmd_GLOBAL_SETUP first.

In that case, we'll have to use a more subtle approach.  You could mark your filter as PF_OutFlag_I_AM_OBSOLETE in the PiPL and outflags and AE won't show it anywhere, but when called in PPro, clear PF_OutFlag_I_AM_OBSOLETE from your outflags.  This works because PPro ignores PiPL outflags and uses the ones in PF_Cmd_GLOBAL_SETUP.

Votes

Translate

Translate
Advisor ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Hi Royi,

You could check in_data->appl_id on GLOBAL_SETUP, and if running in another host app, return an error.  There's an example of checking appl_id in the Portable sample.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Hi,

I don't have an issue with both of them running on the same time on different hosts.

I want the Plug In I target Premier to not even show on After Effects Menu.

Thank You.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Yes, I think we're talking about the same thing.  If running in a host app other than PPro, return an error.

if (in_data->appl_id != 'PrMr')

returnVal = error;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Does the host is aware of that while it loads the plug in's on loading the host?

Thank You.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Yes, if you do the check during PF_Cmd_GLOBAL_SETUP.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Hi Zac.

Just checked it now.

It still on the list in After Effects.

When I try running it on AE it won't run, yet it is available in the list.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

Ah that's because AE loads plug-ins based on the PiPL, without calling PF_Cmd_GLOBAL_SETUP first.

In that case, we'll have to use a more subtle approach.  You could mark your filter as PF_OutFlag_I_AM_OBSOLETE in the PiPL and outflags and AE won't show it anywhere, but when called in PPro, clear PF_OutFlag_I_AM_OBSOLETE from your outflags.  This works because PPro ignores PiPL outflags and uses the ones in PF_Cmd_GLOBAL_SETUP.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 21, 2015 Jul 21, 2015

Copy link to clipboard

Copied

LATEST

Hi,

It works...

Thank You.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines