I am playing with a script inspired by an old CM routine. But I don't want to just import that one, I want to go in a different direction.
One of the things that I want to do, is take pictures with a webcam and store them in a different directory than the default "captured" directory. I also want the pictures to have a name specified by the script so I can easily use them later.
For the life of me, I can't get that to work and I have been looking everywhere, including in other scripts that take webcam pictures. I can take webcam pictures, but they all end up on the "captured" directory with a random name such as "823609430.jpeg"
I am using this code below:
Code:
filename = "images/<scriptname>/captured/01.jpg"
filename = getImage("Taking photo...")
setImage(filename)
new File("images/<scriptname>/captured/01.jpg")
Please tell me what I'm doing wrong and how I can get the script to do what I want.