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.
Adding multiple images
-
I figured out how to add an image to Pythonista using the "+" icon at the top of the edit screen, but is there any way to add a whole lot of images at once? I have over 100 that I want to use in a game, and adding them one at a time is seriously tedious.
-
The easiest way might be to zip them up, then use stash to wget then unzip.
-
Where are these images now?
- If they are on your iOS camera roll, then check out
photos.pick_image(multi=True)
. - If they are on the Internet, then check out
requests.get(url).raw
. - If they are on Dropbox, then check out
Dropbox File Picker
.
- If they are on your iOS camera roll, then check out
-
Wait.. You can add an image from the edit screen? How? What "+" icon? I don't see a "+" icon. Which edit screen?
-
JonB and ccc: Thanks!
zencuke: When you're editing a script, make sure the keyboard is showing and then look at the top right side of the screen. There should be 4 icons: "+", "?", a wrench, and a right-pointing triangle. If you tap the "+", it'll show you all images that come with Pythonista. If you then select "My Images", there's an option at the top to add an image -- it has to be in your clipboard, and you give it a name, and then you can use it as a scene.image or whatever.
-
Thanks @tmm but no "+" and no "?" appear. I'm using an iPhone. Maybe this is an iPad only feature?
-
On an iPhone you can find the same feature if you bring up the selection menu (the one with Select, Paste, etc.) and there should be an "Insert ..." option. (I might be remembering the name wrong.)
-
Thanks @dgelessus. That got me almost there. By experiment I figured out that there are two versions of the select menu, one if the keyboard is open and another if it is not. To see the "Insert" option the keyboard needs to be open. Previously I've noticed that the select menu changes mysteriously (to me) but just figured out the dependency on the keyboard being open. If the keyboard is closed the "help" option appears. Presumably this is the same as "?" on an iPad. Select is a little less mysterious now. ;-)
-
Yeah, I'm using an iPad. Luckily, other helpful people have the iPhone version. :-)
-
The plus button in the toolbar in the iPad version is also only visible when the keyboard is up, yes. This can be quite confusing and annoying at times, but it makes sense. After all there needs to be a cursor or selection at which the selected image can be inserted, and that is only the case if the keyboard is visible.
-
I like to get the keyboard out of the way to make more text visible when I am selecting so it makes less sense to me. I pop the keyboard up and down all the time. I think of it as one mode with the keyboard sometimes hidden. As long as I understand it that's OK. @omz stuffed an amazing amount of useful user interface into the tiny iPhone screen so I am not complaining.
-
I think this functionality went away in the recent beta, at least for the iPhone. There is now a "+" icon but no "My Images" in the resulting view.