Skip navigation
Currently Being Moderated

Playmod flag in custom importer

Nov 16, 2011 4:38 AM

Tags: #importer_api

Hi All,

 

I noticed the following note in SDK_Custom_Import.cpp for SDKGetPrefs8 function.

 

"Note: the timelineData handle is new, and allows ONLY custom importers

    access to the timeline (dont' use with a synth or standard importer).

    The timeline handle provide the importer with the ability (and the know-how)

    to parse the timeline, searching for the clip with the playmod flag

    indicating it is the currently selected clip. This flag will be set

    when the user double-clicks the custom imported clip on the timeline and

    Premiere calls the importer to modify the file."

 

Can any one tell me where "playmod flag" is defined?

 

Thanks & Regards,

Chandan

 
Replies
  • Currently Being Moderated
    Nov 16, 2011 10:28 AM   in reply to knchandan

    Hi Chandan,

     

    Good eye, you've spotted some outdated comments in that sample project.  That comment also says you can use timelineFuncs->getCurrentClipPos(), which was true at one time, but now that function is no longer supported.  I'll update this comment.  Unfortunately, at this time there is no replacement for getCurrentClipPos(), and there is no flag in the video segment information that provides a flag or unique ID for the custom importer instance, to find the clip in the video segment information.

     

    Are you writing a custom importer (that references an actual file on disk)?  If so, you can do some work to parse the video segments to find instances of the custom importer in the timeline.  You can find the in and out points of that instance.  The drawback is that if there are multiple instances of the clip in the timeline, it will be difficult to distinguish between various instances.

     

    Regards,

     

    Zac

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points