Random Media from Folders

By: Andi

Pull Random Media or Image Sources from a Folder

This will allow you to pull a random video, audio or image from a folder, then you can do something like put into OBS. This can be handy if you want to play random memes or bitesize audio bits.

How to Use

Import the Streamer.bot code below. (Press the import button at the top of Streamer.bot and paste it into the Import box)

    
U0JBRR+LCAAAAAAABADtXOtu4tiW/n+k8w6opKMzo2lHvmMf6fwIJIBJQoU7eNI/9g3jwhca2xCn1dI8yzzaPMms7QvEQKpSaU2mq09Ksgq8t/de61s3r88mv/71L7XaJ5/F6NM/ar/yL/A1QD6Dr5+G8YYhf3xfa20Ywy6LakLtPvG82gAFNPRrd4y6CAbhYyv0KNt8+qlYASXxMtzwNS4D6taGcRiw2r/xz567Xrv/DguVi++v2bJN5IYBv0i6EC/E/QBlEdm467gYfL5JOEiCS1KMBCBaOea7gesn/mS/Jh/kY79lMz5RVNEYZWtEcOY/8zO1cigbdinfWDVEtpCpLlBGTEE1NSqYGIuCIcrYWFDFlFRaCpdd9kvCElYVLDvPAoQ9xteMNwmrjDwSL6GMQ9pxozjcpDBpgbyoMqu0z1dtUfuf//rvmuUjh1VkcjZhsq4Yl88rDVyZirwdSiNA+JwMm2zbPfYn4yQMSLLZsCA+NxpvXMcB2zwH/Aj03CfQxuVY8Ym//vbT0WhhFkpAeKwIhqFqgooxE0zDFAUda6qKKKoTbHw6vjRO1xzCuigfj7xonIOBotJXfn4++tvhy88VGE9965yqJ0E3CkPvOOJO7Jld+kKAHGzFFgwsQdiJENlw8x8PD1MX1t9FDw93LtmEUbiIL3rXo4eH1gbE2oWbla4+PGxViEtFVCTz4cGPSLjxXHxBPe94w7euOUyjmPkXzXDDXlj2AiZl+LDNBQ7ji3svcdzgwgpitlkgkl9WvernYzRwGrNmSDOw6ay3xj5xxor3RNuT+PNOvDk+d7vqbXH70ZsrgzWWtafbFfWwP0nR9K5+1V9LRPYSO22M2Kwn2lMxGY6Ns+dHbS8ho6jXDCZPaKoFVqsnEn+yxNNJeut3t7Sp9XFnEqCpmgynmmjPuv582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tPZif9YN6FTycNAPraBqE06RlPbuzyYrVNC5x35ziAfIF74Rdpvd/Wtn8+w643l7rVud+AzGS7PA4Xzb3RmkdHrA4PlrcQRsSf2WyF8NLqlf7q/jquxtiNV4UMTFzeH13qqvlXY+ok8OMdCKcBPk5XKnOQ3PHwHwtb9G35QxMZVEp5Qnv5bHw2ANen6hbTNlQ43nrmKsGge3zUv3xlV/yagrebIkfi8cKQ0R1kr4K4/k+TpjM8GdFygreekRfxxCzjTv3VOqcT5tfXlfqvHuHWlbM3jPV3YhD72Ftv0/oRrLWDz52YBzWkurPqrd2SB79pOLkejcNb/9E4bDIy6NU2+vyV2jvF72+U8w9hRiLkeVijs8gippQoihtubRdP+660mOAuzFQz3KXwvldbLMb7crzWOdfnjX3Dkv6H4e89bhMVb2iIi/wtvMfyZhtU2/yAllvovY858vNBt5/qvey+zzfkUOKa7SpC2xkgsX/X/+QFSjbOKFbkiaoFDC31fCTDCIQvj7hIZOqEok8fTFmA+q8bVUo6xKddWkmkBMnQjwBQlIpaLATCKaiKmMUO1PSDVmveXvoBp1IikaMokgqYCdirS6YGJiCDqmskh0ojGF/qtSjXdJ5JLv5xlFQHGhqbogGYTwV1l1wSS0LlBKCRNFqhBy+sPdD57xR+AZ8w/l/JwqzKeUp6D2+CBM9eSO4SgkKxYP2WZbEGing03PhQiuDsauX87nZ4o/WXD4+whSjtQn9rgONzGjnErMfPBCvlBzmE7/AEI+KmAWowv901//8tv/AigzVXT7QQAA    

1. Select which action you want to do on the left, either Audio, Image or Video. Double click the ‘Set argument’ Sub Action that is highlighted in the below image.

2. Fill in the full file path where the media is on your PC. Make sure it is in the same format as below. The best way to do this is find the folder on your pc you want to use and right click it. Press ‘Copy as Path’. (CTRL+SHIFT+C). Paste it into the Value in the Set Argument.

3. Now anytime you want to get a random piece of media you just need to call this Action. To do this, go to whatever action you have where you want to get a random piece of media. Create a new Sub-Action. Core -> Actions -> Run Action Make sure you leave ‘Run Action Immediately’ checked.

4. You can then use the Argument %randomImage% , %randomAudio% , %randomVideo% depending on which action you are using. This can be used in actions such as ‘OBS Set Image Source’ like the following image example

Companion Video

DISCLAIMER

By downloading this product you agree to not redistribute AND/OR sell it for any profit whatsoever. Feel free to completely edit this product and change it for your needs. We do not offer support on any modifications.

We're happy to offer these items for free because we believe they can be helpful to you. Since they're not full products, we can only provide limited support, but if you'd like to show your appreciation and support our work, feel free to leave a tip. Your generosity helps us continue creating and offering more useful resources! 😊

Leave a Tip! ☕
Last updated: 12/21/2024 17:33:30 (UTC)