Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicitly choose clip #67

Merged
merged 4 commits into from
Apr 25, 2015
Merged

Conversation

metellius
Copy link
Contributor

Commonly used commands will implicitly select clips under playhead on any track if there is no selection already. The priority should always be:

  1. Current selection
  2. Clip under playhead on current track
  3. Clip under playhead on any track
  4. (when it makes sense) blank clip under playhead on current track

This function will determine a track and clipindex, given a timeline position.
If trackIndex != -1, it will try looking for nonblank clips at the other tracks
as well.
Using chooseClipAtPosition, it will select clips on other tracks if there is no
clip on the current one. If there are no non-blank clips at all found on any of
the tracks at the position, the blank clip will be selected.
@ddennedy ddennedy merged commit 24eb4a7 into mltframework:master Apr 25, 2015
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.

None yet

2 participants