Copy link to clipboard
Copied
I hope you are all well in these times 🙂
var numItems: audioTracks[trackIndex].clips[clipIndex].components.numItems
to see if the audio clipItem number of items was 2 (Which would mean it is linked or grouped)
but it did not & returned 1.
PProPanel shows how to link and unlink selected clips: https://github.com/Adobe-CEP/Samples/blob/f86975c3689e29df03e7d815c3bb874045b7f991/PProPanel/jsx/PPRO/Premiere.jsx#L1614
Copy link to clipboard
Copied
I found there is a function
clip.getLinkedItems();
However when I do getLinkedItems.length it returns 0, and when I try getLinkedItems alone it also returns nothing. Even thought the trackItems are clearly linked in the project.
Thanks to NTProductions discord channel I get alot of feedback from here too
https://discord.gg/NDrMbJ
Copy link to clipboard
Copied
PProPanel shows how to link and unlink selected clips: https://github.com/Adobe-CEP/Samples/blob/f86975c3689e29df03e7d815c3bb874045b7f991/PProPanel/jsx/PPR...
Copy link to clipboard
Copied
Great!
I found that clip.getLinkedItems() returns an object like so:
{ length: 3 numItems: 3 }
but is there an actual way to access the linked Items? Not just the length and number of items?
I want to see if the clip.getLinkedItems() linked items are audio projectItems or video projectItems