Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Photos Module, PIL, and layer.image
-
Howdy all! I'm working on getting used to the photos module, which is fairly simple. However, I have one small difficulty: how to use the photos in the scene module.
The basic function of the hypothetical program is it takes a picture and then starts a scene. In this scene is a layer (we'll call it [self.layer]). I want to then do [self.layer.image = picture], where [picture] is the photo I just created. Only problem is that [capture_image()] returns no string value.
I realize that photos use the PIL, something I know next to nothing (okay, perhaps nothing) about. Is there a way to name the picture?
Thanks,
Cubbarooney -
You can use the
load_pil_image
function to load an image from thephotos
module into a scene. -
Thanks omz!
By the way, this is why I love Python. It is so simple, yet is very adaptable.
Cubbarooney