Windows VST Resizing Lost after build 107

Home Forums Development Change requests Windows VST Resizing Lost after build 107

Viewing 20 posts - 1 through 20 (of 27 total)
  • Author
    Posts
  • #52337
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Hi,

    Would it be possible to bring back the plugin resize for windows (click and drag the bottom right corner of the plugin window to resize the frame) that was available in build 107? It seems to have been lost in the 2 later builds, and it’s next to impossible to size the plugin window so that the entire background image can be seen without this ability.

    I’ve attached a picture showing what I’m talking about.

    Attachments:
    You must be logged in to view attached files.

    The Puppeteer
    http://godlike.com.au

    #52883
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Hi Atom,

    I see that this was changed on the change log

    a2ef918 RomanKubiak Thu Apr 23 18:00:44 2015 +0200 Added a small check for restricted instances, to disable resizing.

    Can I ask why this was done? It makes it next to impossible to export a VST properly, at least on my system.

    The panel size parameters don’t seem to work properly and the background image always gets messed up and the end user can’t adjust things to make the window the right size.

    The Puppeteer
    http://godlike.com.au

    #52889
    dasfaker
    Keymaster
    • Topics: 80
    • Replies: 793
    • Total: 873
    • ★★★

    The panel size parameters don’t seem to work properly and the background image always gets messed up

    I think this is what must be fixed. A restricted instance shouldn’t be resizable, but it must be correctly sized when it’s exported.

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

    Hi Puppeteer,
    I think I am that person who asked Atom to introduce the option to block the resizing in VST. The main reason for that is simple – I don’t want my clients to play with the size. I’m sorry to hear this is messing stuff on your end and I hope we will find a solution for that.
    Cheers!

    #52892
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    It would be OK if the export sized the window and the background image correctly. In Win 8.1 64 bit, this doesn’t currently work. Another option would be to make it so that the author could choose whether or not to allow the window to be resized, by introducing an option at the panel level, and would probably be the most flexible compromise.

    For simple panels it shouldn’t be too difficult to scale and move the elements to let the end user resize the window, or to do something like the impOscar plugin and provide different sized presets.

    The Puppeteer
    http://godlike.com.au

    #52896
    atom
    Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    Can you explain what do you mean by “messed up” too big too small ?

    #52901
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Hi Atom,

    I’ve attached a few screenshots showing the issues.

    The background image is 700 x 420 px

    The first is the default exported instance at that size, but there are controls missing. image “panel sized to background.png”

    It doesn’t fit, so I try 800 x 500 – it should fit there, we’ve still got scroll bars and the background has been stretched. image “panel sized 800.png”

    So I try to set it to that size but make sure that the background won’t stretch, by setting it to only reduce in size (have tried other options to, but all with the same result). The settings are in the 3rd attachment – Showing Settings.png

    This is the output from those settings, still not right, and still with scroll bars.
    image “With Shown Settings.png”

    Attachments:
    You must be logged in to view attached files.

    The Puppeteer
    http://godlike.com.au

    #52906
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    These are all launched in the 64 bit VST Instance in Win 8.1 and Ableton Live 9 Suite.

    All images are direct screen grabs at 1:1 pixel size and the sizes don’t correspond with the settings in any way I can see.

    • This reply was modified 6 years, 11 months ago by Puppeteer.

    The Puppeteer
    http://godlike.com.au

    #52920
    zeoka
    Participant
    • Topics: 73
    • Replies: 466
    • Total: 539
    • ★★★

    may be you could set panel size in” called before any mods is created”… not tried

    i have just one panel that is sized correctly

     -- Called when the panel is created, no modulators will exist at this point
    -- consider this the panels constructor
    SZ = {174,8,204,-384,-378,10,204,-376,-384,4,192,-384,86,118,1118,342,446,806,910,118,582}
    
    function Resize(szvl)
          if szvl ~= nil 
        then if szvl ==  0 
           then TLP = 0
         elseif szvl ==  1  
           then TLP =  388
            end
            for o = 1,21 do 
                f = panel:getModulatorWithProperty("modulatorCustomIndex" ,o):getComponent()
                f:setTopLeftPosition(SZ[o] + TLP,f:getY())      
            end
         end
    end
    -- Called when the panel has finished loading
           Resize(panel:getModulatorWithProperty("vstIndex",120):getValue()) 
             panel:getCanvas():repaint()
    -- Called when the panel background needs repainting
    --
    
    PanelImage = function(canvas,g)
    p_size = panel:getModulatorByName("Loupe"):getValue()
    
          if p_size == 0 then 
             g:drawImage(pnImg,- 388,0,1554,928,0,0,1554,928,false)
             canvas:setSize(1166,928)
        else g:drawImage(pnImg,0,0,1554,928,0,0,1554,928,false)
             canvas:setSize(1554, 928)
         end
    end
    -- Called when a mouse DOWN (any mouse button) event happens on a component
    -- @comp
    -- @event   http://www.rawmaterialsoftware.com/juce/api/classMouseEvent.html
    --
    
    SizeClick = function(comp, event)
    canv = panel:getCanvas()
    sizeval = (comp:getOwner():getValue() + 1) %2
    comp:getOwner():setModulatorValue(sizeval ,false,false,false)
    Resize(sizeval) 
    canv:repaint()
    end

    all scripts that change size and mods positions

    #52996
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Thanks Zeoka, I’ll have to go through that to see if it will work for what I’m trying to do.

    In the first bit of code you posted above, are the numbers in SZ the x co-ordinate for the top left corner of each of your modulators?

    The Puppeteer
    http://godlike.com.au

    #53026
    zeoka
    Participant
    • Topics: 73
    • Replies: 466
    • Total: 539
    • ★★★

    yes

    i realize when all scripts are together that code responsible of correct sizing are :

    canvas:setSize()

    may be in conjunction panel:getCanvas:repaint() in “called when the panel has finished…

    may be it could possible to write that in “Called when the panel is created, no modulators..” not sure

    but i’ve issue bigger than resizing : i can’t export ressources with panel on the last build(5.3.122) and i can’t export at all(standalone)

    #53029
    zeoka
    Participant
    • Topics: 73
    • Replies: 466
    • Total: 539
    • ★★★

    it seems that the toolbar isn’t taken in account in your case

    #53030
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    I had issues with resources as well.

    Not really sure how I fixed it. I think it was fixed by loading an old bpanel with the resources, and while it was open, I double clicked on the new panel in windows explorer, and it seemed to fix it.

    The Puppeteer
    http://godlike.com.au

    #53088
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Hi Zeoka,

    I lost some resources again today. It’s new resources that don’t show up on mine.

    The way I fixed it was as follows.

    Note: When I refer to Double clicking on the panel or bpanel will open restricted instances (even if they are not saved as restricted). I do this from within explorer on windows, ie not using the file open dialog of ctrlr.

    Open up the panel that works.
    Export as a bpanel (compressed with all resources).
    Exit out of ctrlr.
    If you double click on the panel file, it should open up in the same state as the restricted instance (ie resources will be missing).
    Close the restricted ctrlr instance.

    Double click on the new bpanel file. You may get a bunch of errors as it tries to import the resources that it already has cached, somewhere.
    Double click on the panel file, and all the resources should be there.
    Now open Ctrlr properly from the ctrlr.exe file (I can’t remember if I closed the bpanel first.)
    Now you should be able to export properly.

    If it happens again, I’ll try to record my screen to youtube to show the procedure.

    The Puppeteer
    http://godlike.com.au

    #53162
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    I’m still having issues with the resources on export, even after they all show OK in the panel. There’s something messed up with the resource caching.

    Have got beta users reporting back that the standalone has no sliders or knobs in it (ie all the resources are missing).

    I’ve tried deleting the AppData folders and still no joy. This really needs to be fixed, or at the very least we need to work out a reliable work around.

    The Puppeteer
    http://godlike.com.au

    #53163
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Here is an example of what happens now in the latest build of the panel in the first post of this thread.

    Atom, do you have any idea what’s happening here?

    Attachments:
    You must be logged in to view attached files.

    The Puppeteer
    http://godlike.com.au

    #53165
    atom
    Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    Well the resources are missing i can see that, i can’t tell why at the moment. Can you send(attach) that panel exported as a .bpanelz (not an instance) to me ?

    #53205
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Hi Atom

    Here’s the panel. Can you let me know when you’ve got it?

    https://onedrive.live.com/redir?resid=111E1F7D24CCE2C!123614&authkey=!AAQNE0ekfBm-rTE&ithint=file%2cbpanelz

    The Puppeteer
    http://godlike.com.au

    #53206
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    As best I can tell, I start losing resources when I add a new resource to the panel (ie if I add a new graphic, or new slider image and use it on the panel.)

    The Puppeteer
    http://godlike.com.au

    #54592
    Puppeteer
    Participant
    • Topics: 16
    • Replies: 185
    • Total: 201
    • ★★

    Nope, it’s unrelated to adding new resources. I’ve just done an update where no new resources were added (just programming and some new combo boxes) and it happens again.

    This time though, the exe file runs fine on the computer it was created on, but if I try to run it on another computer, no resources, and if I try to export from the bpanelz on another computer, no resources.

    This is doing my head in.

    Attachments:
    You must be logged in to view attached files.

    The Puppeteer
    http://godlike.com.au

Viewing 20 posts - 1 through 20 (of 27 total)
  • The forum ‘Change requests’ 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