View Single Post
Old 04-17-2013, 10:37 AM   #88
Human being with feelings
Join Date: Aug 2012
Location: Finland
Posts: 2,514

Oh, I misunderstood. Well, I'm glad that you got it working.

edit: This may work better (new tracks are inserted at the end):

    # check if there are enough tracks for items, create more tracks if needed
    needed = int(RPR_CountTracks(0) - trackIndex + 1 - len(selItemIdL))
    if needed < 0:
        for tr in range(abs(needed)):
            # insert new track(s) at the end
            RPR_InsertTrackAtIndex(RPR_CountTracks(0), 1)

Last edited by spk77; 04-17-2013 at 11:10 AM.
spk77 is offline   Reply With Quote