How to add a macro to a cuelist cue by macro

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

Moderator: Moderators

icke_siegen
Posts: 870
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

How to add a macro to a cuelist cue by macro

Postby icke_siegen » 07 Feb 2019, 18:39

As part of a larger 'setup my show for me' macro we want to add a macro to a cuelist cue.

This is what I am currently trying:

Code: Select all

ActionScript.SetProperty("Playbacks.PlaybackEdit.Handle",(Handles.GetHandle("PlaybackWindow",0,1)))
ActionScript.SetProperty("Playbacks.PlaybackEdit.CurrentStep",1.0)
Playbacks.Editor.Macros.SetTargetHandle("Avolites.Macros.SnapForward")
Playbacks.Editor.Macros.AddLink(Playbacks.Editor.Macros.Target.Handle)


However, it doesn't work, and the log says
System.NullReferenceException... at Avolites.Titan.Controllers.Editor.Playbacks.PlaybackMacroEditor.AddLink(Handle handle)
. But which object is missing? Thanks in advance for your help!

Sebastian

Who is online

Users browsing this forum: No registered users and 2 guests