Beispiel #1
0
    def n_items(self):
        """
        Number of items on track.

        :type: int
        """
        n_items = RPR.CountTrackMediaItems(self.id)
        return n_items
Beispiel #2
0
    def items(self):
        """
        List of items on track.

        :type: list of Item
        """
        n_items = RPR.CountTrackMediaItems(self.id)
        item_ids = [RPR.GetTrackMediaItem(self.id, i) for i in range(n_items)]
        return list(map(reapy.Item, item_ids))