Im trying to test out first taking a picture and save it to system.TemporaryDirectory == this works fine
and the try to use it in a comp blend == not ok, I get this error code:
“Attempt to concatenate upvalue ‘baseDir’ (a userdata value)”
Heres the chunk that goes wrong:
local baseDir = system.TemporaryDirectory
–The image in temp dir = “image01.jpg”
–Further down in the code:
compositePaint =
{
type=“composite”,
paint1 = { type=“image”, filename = baseDir … “image01.jpg” },
paint2 = { type=“image”, filename = “texture3.jpg” }
}
When trying this code;
-
click first on the button start screen (it fires up the camera and saves it to the baseDir)
-
click the button over to start the blending show
Download the attached file and try it out:
PS!
You have to use Version 2013.2026 (2013.07.15) for this to work