Skip to main content
Known Participant
April 26, 2009
Question

Export filter included in ExportService?

  • April 26, 2009
  • 3 replies
  • 1771 views

Hi, I wrote a little export filter. Then I wrote a simple ExportService, both are declared in the Info.lua file.

Now, I need that when the user select my ExportService, my ExportFilter is automatically included (not having to manually enable it in the Postprocess action window and when switching to another export preset and back to my ExportService, it disappears).

How to do that?

Thanks a lot

Giuse

This topic has been closed for replies.

3 replies

Known Participant
May 15, 2009

Yes Eric and thanks! It works and it is just a bit slower. In practice, the rendering is almost immediately interrupted.

Cheers

Giuseppe

escouten
Adobe Employee
Adobe Employee
May 11, 2009

This is not possible with the current SDK.

The only workaround I can think of is to move the work that's done in the export filter directly into the export service provider. You may have to duplicate the interface if you also want to provide the filter's behavior as a stand-alone service for use with other services.

Known Participant
May 11, 2009

Actually I copied the

     shouldRenderPhoto

in the exportService and it seems to be just ignored (while it worked when the shouldRenderPhoto was in the ExportFilter).

Anything am I doing wrong?

Thanks

Giuse

escouten
Adobe Employee
Adobe Employee
May 11, 2009

Oh shoot ... didn't realize you were using shouldRenderPhoto. That function isn't supported in the export service provider API.

I haven't tested this recently, but I think you can do what you're trying to do in your processRenderedPhotos function.

Something like:

function processRenderedPhotos( functionContext, exportContext )


    exportContext.exportSession:removePhoto( unwantedPhoto )

          -- This has to proceed your

          -- exportContext:renditions{...} call


end

Note: This is just taken off the cuff from a sample plug-in I have around. I haven't tested it, so it might need some tweaking, but the basic principle should be right.

Hope this helps ...

P.S. You should be able to call :removePhoto multiple times (prior to the :renditions call) to remove multiple photos.

Known Participant
May 11, 2009

Hi, any feedback for this question?

Thanks

Giuse