autoMediaPlayer

Hello,

I am using the autoMediaPlayer tool in the palette of TouchDesigner 2023.12230 to play a diaporama out of a folder with incoming new images comes every 10 seconds.

Even when I deactivate the randomizer, it plays:

1, 2, 3

then

1,2,3,4

then

1,2,3,4,5

If there a way so I just continue playing without returning to the first image?

Bests,

Hi @hb9,

quick counter question - just need to know to suggest something useable:

What should happen if no new image comes in?

cheers
Markus

Hi Markus, if no new image comes in, I would like that the last generated image stays displayed.
Best,

Hi @hb9,

you might want to make use of the Folder DAT’s callbacks in combination with the component called movieBlender from the Palette’s Tool section.

In the onFound callback of the Folder DAT, check if the returned row == 1 to make sure this is the latest incoming file and then set the File parameter of the movieBlender component.

def onFound(dat, info, row):
	if row == 1:
		op('movieBlender').par.File = dat[row,1].val
	return

With the Instant Playback parameter of the movieBlender enabled, as soon as the File parameter is changed, it will start showing the image.

Hope this helps
cheers
Markus

@snaut Thank you very much for your message. I will try.
Best,