Hi,
how can I add an “action at start” and “action at stop” to a track in a script? Is there a function like “pi.stopaction”?
[code]procedure OnExecuteCommand(Command: string);
var
pi: IPlaylistItem;
begin
if copy(command, 1, 11) = 'INSERTFILE ’ then begin
pi := Factory.CreatePlaylistItemFromFile(copy(command, 12, 255), [fitAutoCue]);
pi.stopaction(fade out Cartwalls)?
CurrentPlaylist.Insert(CurrentPlaylist.GetNextIndex, pi);
end;
end;
begin
end.[/code]
