Question for Atom: AddResources…

Home Forums General Panels, Components, Macros Question for Atom: AddResources…

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #72230
    proton
    Participant
      • Topics: 19
      • Replies: 94
      • Total: 113
      • ★★

      Hello Atom and all other awesome Ctrlr users!

      Quick question:
      Is there any way to create a method that will open the “Add Resources” window?
      Basically mimicking the pressing of the “Add” button on the “Resources” tab so it can be accessible by the user from the main panel without the need to dig in the AppData\Roaming\Ctrlr….. etc. manually (on both platforms).
      Same question could apply to the “Remove” and “Reload” buttons too.
      I went thru some JUCE classes but couldn’t find anything really even close to what I need, so I assume this is maybe more Ctrlr than strictly JUCE related.

      Thank you and have a great day!

      Peace!

      #72247
      proton
      Participant
        • Topics: 19
        • Replies: 94
        • Total: 113
        • ★★

        knock, knock… anybody home ???
        Any ideas?
        Anyone?
        Cheers!

        #72252
        human fly
        Participant
          • Topics: 124
          • Replies: 1070
          • Total: 1194
          • ★★★★

          hey Proton :o)
          in my digging, i saw that it is possible to create and delete
          modulators (saw it in the github stuff).
          maybe something there?

          #72272
          proton
          Participant
            • Topics: 19
            • Replies: 94
            • Total: 113
            • ★★

            Hi human fly,
            how do you mean? Can you elaborate on that?
            Cheers!

            #72274
            human fly
            Participant
              • Topics: 124
              • Replies: 1070
              • Total: 1194
              • ★★★★

              i’m pretty sure i saw something here somewhere:
              https://github.com/RomanKubiak/ctrlr/tree/master/Source

              and there’s some stuff here – but i don’t know if we’re
              are allowed to get at these, CtrlrManager.h:
              https://github.com/RomanKubiak/ctrlr/blob/master/Source/Core/CtrlrManager/CtrlrManager.h

              at line 114 and 193, it has addModulator and removeModulator.
              beyond that..??

              #72278
              proton
              Participant
                • Topics: 19
                • Replies: 94
                • Total: 113
                • ★★

                Hi human fly,
                ok now I see what do you mean but unfortunately it is not what I am looking for.
                The Git repository is of course a good place to look for clues but in this case I think only Atom can shed a light.

                What I want to do is to allow the end user to import own resources to the panel by pressing a GUI button and with a simple Lua script attached. I did checked the demos where Roman shows us how to deal with file import/export but I couldn’t find anything related to the root folder where the resources are stored and I hope for an elegant solution with the option to Add, Remove and Refresh assets.

                Hm, maybe he will check the forum soon.

                Cheers!

                #72299
                proton
                Participant
                  • Topics: 19
                  • Replies: 94
                  • Total: 113
                  • ★★

                  Is Atom still here? 😉 Or is he sipping drinks on Bermudas beaches???
                  🙂

                  #72314
                  human fly
                  Participant
                    • Topics: 124
                    • Replies: 1070
                    • Total: 1194
                    • ★★★★

                    hey Proton,
                    this morning’s little discovery:
                    idea here: i’ve managed to ‘add resource’ to a popup
                    with
                    i= Image(resources:getResourceAsImage("my_image"))

                    as per the demo file DEMO Popups.
                    provides me with alternative to using a combo.

                    could you maybe use this, if you could replace the image
                    referred to, on the fly? ie: call the image file ‘ImageResource1.png’,
                    and allow the user to overwrite that with own file?

                    #72327
                    proton
                    Participant
                      • Topics: 19
                      • Replies: 94
                      • Total: 113
                      • ★★

                      Hi human fly,

                      thanks but I know about this and too bad this is not what I am looking for.
                      Here you select a certain image from a bunch of images you already have in your Resources, what I am looking for is a way for the user to ADD png files to the Resources first (root folder of the panel) so they can select them later on with a method you’ve described above. I hope this description of my intent is clear 😉 Cheers!

                      #72330
                      human fly
                      Participant
                        • Topics: 124
                        • Replies: 1070
                        • Total: 1194
                        • ★★★★

                        yep i realised that after posting.

                        #83090
                        goodweather
                        Participant
                          • Topics: 45
                          • Replies: 550
                          • Total: 595
                          • ★★★

                          Hi Proton,
                          did you solve your issue with loading images?
                          I’m actually looking for a way to display an external image as a popup.
                          Looking in Juce I found the ImageFileFormat class that allows reading and writing images.
                          When read, it can maybe be added in Resources?
                          Anyway, I will try using that ImageFileFormat method and I hope it has been integrated within Ctrlr.
                          I’m using 5.3.201…

                          Cheers

                        Viewing 11 posts - 1 through 11 (of 11 total)
                        • The forum ‘Panels, Components, Macros’ is closed to new topics and replies.
                        There is currently 0 users and 71 guests online
                        No users are currently active
                        Forum Statistics
                        Threads: 2,495, Posts: 17,374, Members: 77,605
                        Most users ever online was 12 on January 22, 2019 3:47 pm
                        Ctrlr