We are about to switch to a new forum software. Until then we have removed the registration on this forum.
how do i load movie file paths into array so i don't need to specify them for each movie instance?
this is how i would do this for image files:
PImage[] p = new PImage[20];
for (int i = 0; i < p.length; i++) {
p[i] = loadImage("v"+nf(i, 2) + ".jpg");
}
but what to use for movie files?
Answers
that's the problem,i wanted to know how to store paths! in Libraries -> video -> Movies all examples use single video file
like: String PATH= "/home/video01.mp4"; Movie mov; mov =new Movie(this,PATH);
how do i scan some folder with few video files and then store in array to use PATH[0], PATH[1] etc.
Arrays use the same
[]
syntax. As you did for PImage:PImage[] imgs = new PImage[20];
,do the same for Movie:
Movie[] movs = new Movie[5]
.For paths you can use String[]:
String[] paths = new String[movs.length];
And for more advanced tips, go here:
http://forum.processing.org/two/discussion/2578/how-to-filter-and-order-a-set-of-files
hi, thank you, for some reason i got "could not load movie file message" where's my mistake?
Already answered in how to make a movie array?
Making several similar topics isn't good as it dilutes information and efforts of those wanting to help...