markreidvfx / pyavb

Read and write Avid Bin FIles (AVB) files
https://pyavb.readthedocs.io
MIT License
58 stars 4 forks source link

Subclips in a Bin #15

Closed Toadman30 closed 1 year ago

Toadman30 commented 1 year ago

Hi,

I was wondering if there was a way to return only the subclips within a bin and not everything on a timeline? I have a bin that has a few supclips and a seq but running mastermobs() or compositionmobs() returns everything that is on the timeline along with everything within the bin.

markreidvfx commented 1 year ago

If it is like AAF, then subclips are CompositionMobs with compositionmob.usage == 'subclip'

https://github.com/markreidvfx/pyavb/blob/main/src/avb/trackgroups.py#L1086