We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
sketch's data directory (Read 763 times)
sketch's data directory
Feb 26th, 2008, 5:23pm
 
Hey Dudes.

This may sound like a dumb question but Im trying to read a video using read() and I'm not sure about where to place the actual video file.
manual says "movies must be located in the sketch's data directory"
and my error log says "The file "movie.mov" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
I tried to put the file in the same directory where my pde file is but it didnt work...
any ideas?
thanks
Re: sketch's data directory
Reply #1 - Feb 26th, 2008, 5:48pm
 
create a directory called 'data' in the directory holding your pde. put the movie in there. (there's a menu option that does this for you, i think. yes, Sketch - Add File (in v0125 anyway))

alternatively, you can *usually* specify a full path to files in open()
Page Index Toggle Pages: 1