Execute script without loop

You have a question or need an advice about how to do something? Ask it here!
Post Reply
jsonio
Posts: 51
Joined: 10 Dec 2018 11:39
Execute script without loop

Post by jsonio »

Hello,

I've kinda stupid question !
I would like my really simple script to just load one random track from Mylibrary and that's it.
I wrote one line in my script for that but the script loops this line 1.

How can I execute script without looping the lines, executing just one time the line 1? :(
I tried LOOP LINE 2 but when I click on "TEST" it has no effect on it.

Thank you very much in advance,

jsonio
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Execute script without loop

Post by radio42 »

I don't understand the background of your question?!
i.e. What do you want to achieve (I know just execute the script without looping, but for what reason and in which context)?

A script is normally used and assigned to a program scheduler entry. Thus, here it doesn't make any sense to execute it without looping, but to return only 1 single track.
Example: You have a program, that is defined to run for certain time span (e.g. 1 full hour or even only 15 minutes). If you would return only 1 track, the rest would result in silence.

However, there are other scenarios, where ProppFrexx could use a script and indeed only runs it without looping.
Examples:
- when using a script as an Fixed Time Element
- when using a script to play an Overlay
- when using a script inside an Embedded Container
- when using a script inside another script (Execute)
etc.

That is why I am asking about the context and the reasoning?!
Where do you want to use it without looping?
KXclassics
Posts: 1
Joined: 06 Jun 2021 18:43
Re: Execute script without loop

Post by KXclassics »

Hi Bernd

Running PF latest stable. I want to insert a script with 4 scriptlines as a Overlay while in Autoplay / nonstop modus. I only want it to play only those 4 lines and from that point continue to play the active running programscript.

- Do I need to select any specific options in or the script or the overlay entry or is that the default behaviour ?
- Will ACPD work in the overlay or do I need to use the asplaylist insert option?

Tnx

KX
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Execute script without loop

Post by radio42 »

When you run a script inside an overlay, it anyhow only executes none looped. Eg. that’s the default and only option.
Yes, ACPD should work, except it’s disabled in the general settings.

Post Reply