Skip to content

Conversation

@grayson-solis
Copy link
Contributor

No description provided.

Copy link
Member

@cfillion cfillion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script deletes any existing regions matching the track name, then [...]

  • Deletes existing regions named for each track before processing.

-- 1. Get track name and delete its existing regions

It doesn't do that?

----------------------------------------------------------------------------------------
-- PLACEHOLDER: delete_existing_regions_for_track FUNCTION
----------------------------------------------------------------------------------------
function delete_existing_regions_for_track(track_name)
    -- ... keep existing delete_existing_regions_for_track function unchanged ...
end

Comment on lines +125 to +126
local region_id = reaper.AddProjectMarker(0, true, stack_start, stack_end, region_name, -1)
reaper.SetProjectMarker3(0, region_id, true, stack_start, stack_end, region_name, track_color)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's AddProjectMarker2 which allows setting the color in one go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants