HandleRange vs PlaybackReleaseTime

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

HandleRange vs PlaybackReleaseTime

Postby sideshowbond » 16 Aug 2018, 09:42

I was trying the following and I was not getting the results I was hoping for

Code: Select all

      <step>Handles.ClearSelection()</step>
      <step>Handles.SetSourceHandleRange("PlaybackWindow",                                  {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59})</step>
      <step>ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackReleaseTime", time:3)</step></sequence></macro>


SetSourceHandleRange works as HighlightSelectedHandles could prove and PlaybackReleaseTime on its own as well. Does PlaybackReleaseTime not work with a range selection?
icke_siegen
Posts: 1088
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: HandleRange vs PlaybackReleaseTime

Postby icke_siegen » 10 Sep 2018, 13:34

Only to not let this unanswered I am reciting Gregory's answer here:

You could try something like this:

Code: Select all

Handles.SetSourceHandleRange("PlaybackWindow", {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59})
Playbacks.Editor.SetSelectedPlaybacks(Handles.ContextHandles)
ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackReleaseTime", time:0)
Handles.ClearSelection()


For this you need to use the ContextHandles property as this contains a list of all the selected handles and not just the first one as with SourceHandle.

Who is online

Users browsing this forum: No registered users and 7 guests