I am working on a custom importer plugin. Basic features are working fine, but, I'm facing an issue with Duplicate functionality.
I added a new custom importer clip to project and created a duplicate of that clip (by right clicking the clip in Project window and selecting Duplicate from pop-up menu). Then I added both clip instances to timeline. Now, if I change properties of one clip instance it reflects in both clips. I noticed that both ClipIds are same and they are referring to same media path. I also observed the same behavior in SDK_Custom_importer sample. But, built in 'Color Matte' and 'Title' clips works fine.
As per my understanding, Duplicate command should create a new clip from existing clip and new clip should be independent of original clip after creation.
How to fix this issue? Is there any selector that I should handle to support Duplicate functionality?
Thanks & Regards,
The Color Matte and Title clips are not quite the same as your custom importer example. Those are synthetic clips, without a file reference on disk. If you exported a title to a file on disk, and then reimported it, and duplicated it so that there were two clips in the Project panel that reference the same file on disk, I think you would have the same behavior as what you're seeing with your custom importer. Duplicate doesn't create a new file on disk. The user would need to do that manually, and then import the new file.
Thanks for your reply. Is there any way to import a clip into current project through plugin? If it is possible, I could provide an option similar to 'New Title Based on Current Title".
Unfortunately there's nothing like that at this time. Good idea though. Is it enough for you to programmatically import the clip, or do you need to open the setup window for the new title? If it's just programmatically importing the clip, I can add you to the list of requestors for feature request ID 140621.
Thanks for the info. Eventually it should work as standard 'Save As' option (save a new clip with current settings and open the setup dialog). Adding clip through plugin is the first step and may open new possibilities to programmers. Please add me as a requester for this feature.
Thanks & Regards,