|
|
Thread Tools | Display Modes |
![]() |
#1 |
Human being with feelings
Join Date: Apr 2017
Location: Scotland, UK
Posts: 56
|
![]()
I have made some code for showing a grid of videos while automatically allocating a column and row count (leaving black space where necessary). Here's the code to paste into the Video Processor plugin in an empty track with any number of video tracks below it:
Code:
// grid of videos - automatically draws any number of videos from tracks x=0; count_tracks = input_track_count(); cols = ceil(sqrt(count_tracks)); rows = ceil(count_tracks/cols); loop(cols*rows, gfx_blit(input_track(x), 1 /* preserve aspect */, (x%cols)*project_w/cols, ((x - (x%cols))/cols)*project_h/rows, // position project_w/cols,project_h/rows // output width and height ); x += 1; ); https://forum.cockos.com/showthread.php?t=233798 COVID-19 is currently inspiring lots of people to make videos like this. |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|