omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    5
    12
    5952
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tmm
      tmm last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        The easiest way might be to zip them up, then use stash to wget then unzip.

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          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.
          1 Reply Last reply Reply Quote 0
          • zencuke
            zencuke last edited by

            Wait.. You can add an image from the edit screen? How? What "+" icon? I don't see a "+" icon. Which edit screen?

            1 Reply Last reply Reply Quote 0
            • tmm
              tmm last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • zencuke
                zencuke last edited by

                Thanks @tmm but no "+" and no "?" appear. I'm using an iPhone. Maybe this is an iPad only feature?

                1 Reply Last reply Reply Quote 0
                • dgelessus
                  dgelessus last edited by

                  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.)

                  1 Reply Last reply Reply Quote 0
                  • zencuke
                    zencuke last edited by

                    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. ;-)

                    1 Reply Last reply Reply Quote 0
                    • tmm
                      tmm last edited by

                      Yeah, I'm using an iPad. Luckily, other helpful people have the iPhone version. :-)

                      1 Reply Last reply Reply Quote 0
                      • dgelessus
                        dgelessus last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • zencuke
                          zencuke last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • zencuke
                            zencuke last edited by

                            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.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB Forums | Contributors