Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Thread Tools Search this Thread Display Modes
Old 29th August 2021, 16:13   #1  |  Link
Registered User
Join Date: Mar 2014
Posts: 38
How can I select 4 jpg images randomly from 6-8 pieces of images?

I have 6-8 photos, or more. I would like in my AviSynth script to choose randomly from them exactly 4 different pieces - no repeat of course -, and then processing only those images according to the script. In many programming languages this is simple, only 1 function, for example .sample(4) But how is it possible in AviSynth, if there are no built-in array type?
konstantin1 is offline   Reply With Quote
Old 29th August 2021, 21:38   #2  |  Link
HeartlessS Usurer
StainlessS's Avatar
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,275
How are the images named, and are they of identical chracterists [width etc].

ShufflessS:- https://forum.doom9.org/showthread.php?t=176193

StickBoy Shuffle:- http://www.avisynth.nl/users/stickboy/
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 29th August 2021 at 21:46.
StainlessS is online now   Reply With Quote

choose, photos, random, sample

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 23:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.