Page 1 of 1

How to check if a hanndle/playback exists?

Posted: 25 Jan 2019, 16:55
by icke_siegen
i want to release a number of playbacks by usernumber, regardless if the palybacks actually exist or not - but the macro terminates as soon as a handle is not existent:

Code: Select all

<step>Playbacks.ReleasePlayback(userNumber:83,  Playbacks.MasterReleaseTime, true)</step>
<step>Playbacks.ReleasePlayback(userNumber:2,  Playbacks.MasterReleaseTime, true)</step>
<step>Playbacks.ReleasePlayback(userNumber:79,  Playbacks.MasterReleaseTime, true)</step>


I tried

Code: Select all

<step condition="Handles.IsClaimed(userNumber:83)">


and

Code: Select all

<step condition="Playbacks.IsSteppedPlaybackHandle(userNumber:79)">


but neither works (logs complain a Null Argument exception).

How could I make this happen (want to define a group of playbacks which will always be given certain usernumbers...)

Thanks in advance. Sebastian

Re: How to check if a hanndle/playback exists?

Posted: 03 Feb 2019, 20:18
by Gregory
Try this:

Code: Select all

<step condition="Handles.IsClaimed('cueHandleUN=1')">
  Playbacks.ReleasePlayback(userNumber:1, Playbacks.MasterReleaseTime, true)
</step>

You cannot use the userNumber cast for the IsClaimed function as Handles is used for all types of handles and therefore it doesn’t know to what type of handle the user number pertains.

Re: How to check if a hanndle/playback exists?

Posted: 15 Oct 2019, 20:36
by icke_siegen
Gregory, is there a way to use IsClaimed with the handle location?

Currently we are trying this:

Code: Select all

<step condition="Handles.IsClaimed("Location=Beams,3,25")" pause="0.01">


but this macro doesn't even show at all, and Log Collector says

Unexpected Token 'Location'...


Thanks in advance, Sebastian

Re: How to check if a hanndle/playback exists?

Posted: 16 Oct 2019, 18:21
by Gregory
Try using single quotes around the location string e.g.:

Code: Select all

<step condition="Handles.IsClaimed('Location=Beams,3,25')" pause="0.01">