Hello
I'd like to cycle my images. This is my code which I can use in the 'per second' section in el playlist or pss
$puts(art.path1,$if3($findfile($replace(%path%,%filename_ext%,*Front*.jpg)),$findfile($replace(%path%,%filename_ext%,*.jpg))))
$puts(art.path2,$if3($findfile($replace(%path%,%filename_ext%,*Back*.jpg)),$findfile($replace(%path%,%filename_ext%,*.jpg))))
$puts(art.path3,$if3($findfile($replace(%path%,%filename_ext%,*CD*.jpg)),$findfile($replace(%path%,%filename_ext%,*.jpg))))
$puts(art.path4,$if3($findfile($replace(%path%,%filename_ext%,*Inlay*.jpg)),$findfile($replace(%path%,%filename_ext%,*.jpg))))
$select($add($mod($div(%playback_time_seconds%,5),4),1),
$imageabs(0,0,$sub(%_width%,0),$sub(%_height%,0),$get(art.path1),,0,255,)
,
$imageabs(0,0,$sub(%_width%,0),$sub(%_height%,0),$get(art.path2),,0,255,)
,
$imageabs(0,0,$sub(%_width%,0),$sub(%_height%,0),$get(art.path3),,0,255,)
,
$imageabs(0,0,$sub(%_width%,0),$sub(%_height%,0),$get(art.path4),,0,255,)
)
My most common scenario is Front, Back, CD, Inlay images, but very often I don't have an inlay image or have more than one and it becomes very messy. The value 5 determines the cycle period in seconds, the value 4 the sources.
Is there an elegant way to solve this with variables - to cycle any image available.