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.
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.
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.
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.
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;
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.
Copy link to clipboard
Copied
Yes, if you do the check during PF_Cmd_GLOBAL_SETUP.
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.
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.
Copy link to clipboard
Copied
Hi,
It works...
Thank You.