|
Author |
Topic: reading from alternate folder other than data (Read 465 times) |
|
swpspce
|
reading from alternate folder other than data
« on: Nov 17th, 2003, 10:47pm » |
|
Hi I am currently capturing a vidoe image through processing and then saving it. Although it saves the file in the processing parent directory and not in the projects data folder - is this correct behaviour? Secondly - is there a way to read in an image from a folder other than the projects data folder (and not using URL). No, I cannot move the images as they are created by processing during run time, and placed in the parent directory. As stated above... I then convert the files to a jpg(s) using applescript and want to read the new jpg back into processing. Can I point the processing to read from the parent directory or alternate folder? thanks swpspce
|
|
|
|
REAS
|
Re: reading from alternate folder other than data
« Reply #1 on: Nov 18th, 2003, 7:55am » |
|
in the past, i've been able to use local path information to load images and fonts. for example: BFont fontA = loadFont("/fonts/Meta.vlw.gz"); this will look in the processing folder in the fonts folder for the font Meta.vlw.gz this won't work in an applet, however. + casey
|
|
|
|
benelek
|
Re: reading from alternate folder other than data
« Reply #2 on: Nov 18th, 2003, 12:27pm » |
|
you can save your images to the sketch's data folder by putting the extra directory structure in front of the filename (which you may find useful in organising all your generated images into their own folder): save("sketchbook/default/mySketch/data/filename.tiff");
|
|
|
|
|