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

How to get Source file path in plugin

New Here ,
Nov 27, 2024 Nov 27, 2024

I‘m using C++ and ppro's SDK to write an video filter type plug-in. I need to get the source file address of the selected video material.

Is there any way to get it in the SDK?

Thanks

TOPICS
SDK
362
Translate
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

Adobe Employee , Nov 28, 2024 Nov 28, 2024

No. 
A video filter is designed to operate on pixel buffers, not source media. Footage interpretation, source settings effects, and video filters earlier in the stack all have the opportunity to modify pixels, before they are sent to your video filter.

Additionally, the source pixels could be coming from a nested sequence (which will not have a path), or a synthetic importer....

No video filter should be relying on a media path. 

Translate
Community Expert ,
Nov 28, 2024 Nov 28, 2024
Translate
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
New Here ,
Nov 28, 2024 Nov 28, 2024

Thanks for reply:
thist answer is use PPro's ExtendScript  js  API and  I use Premiere Pro CC 12.0 Win SDK  C++。

These are two different SDKs? 

That's probably not what I want

Translate
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
Adobe Employee ,
Nov 28, 2024 Nov 28, 2024

No. 
A video filter is designed to operate on pixel buffers, not source media. Footage interpretation, source settings effects, and video filters earlier in the stack all have the opportunity to modify pixels, before they are sent to your video filter.

Additionally, the source pixels could be coming from a nested sequence (which will not have a path), or a synthetic importer....

No video filter should be relying on a media path. 

Translate
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
New Here ,
Nov 28, 2024 Nov 28, 2024

You're right, it's just that my plugin's special logic requires it.

Translate
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
Adobe Employee ,
Dec 02, 2024 Dec 02, 2024

Even if you somehow obtained the source media path for the trackItem to which your effect is applied, there is a very, very small chance that the source media is what your plugin is actually being asked to operate on. 

Translate
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
New Here ,
Dec 02, 2024 Dec 02, 2024
LATEST

There will not be any operation on the source file, it is just for effect preview. I saw that other plug-ins can be obtained but the API does not

Translate
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