Vectorized Power Button / And Lot Of Questions



  • Hello Everyone

    I Really Need Help With The Below Issues:

    The Script ( At The Bottom ) Is A Normal Power Button ( Bypass ) SVG
    

    1 - The Issue Is That I Can't Assign Midi Learn To The Button By Right Clicking Over The Power BTN ( midi Learn Pop Up Won't Show Up )

    2 - I Can't Use The Power Button In Ableton's Automation
    It's Not There!!!
    " IsMetaParameter" Enabled In Property Editor.
    I Added A Name To It! No Luck 😞
    Any Help Is Much Appreciated
    Thanks

    HiseSnippet 1557.3ocsWs2aaaCDWJMpXwadXEXe.3xeL3.34JoHYa0fh1kWqYqI0Xtqn.EEErRz1DUVxPhNoAA8679Frc7kLkrQVZ.lbji48h+tiGIuaTQdLorLuvxdmWe8Bhk824L95L1rilgoYVmcrk826bNtjQJPRRGd8BbYIIwx19A+Fmf8NaaId96mcHNEmESVQxx5M4zXxKoyorUTG87+flldJNg7Z5bCoCd9Yw4YGkmluDvyCbbsVfi+DdJ4BLWrsbrre3IITVdwXFlQJsr29v7jqGOK+pLo7ugVR+XJgOvyZLXHI4SySS3HlS05nYzzjQZ+tzBrxnUQgGHiB+ny4zDZE8UQiePv.sRCy3g8V2F779ugm6lfmsA71VBuG4LNtftfshCGaeqyYYvB0DLrDXBKorVaU1x4nbPhLVu43OQNs.FToQGOW2tH3q8Nncq1sfEhRF5RbAZT9UjhCe8EnmhzZiSRFgyHoc1Uyb2tH+P96dGfPHtAzb5kfY3dKvrYFFHtf.QnQ.wNfBqMaGCp.R+Ngg77b654F00E9D0ua+Pie44NrAcuH+t8C5FYR22k+Fz0affmmqe0qVq9tbNhe50jJXKuPPsv86546sIU7GtgowfiAvzH1fiDjQ0nqmPv8AqZPvDAFHcsexA8F7yUxoBfZyJmkMEiihDg+JuKTPMzi+mWTnJBoFG5IWVTy7vUQhffZb.UpyQZ.e+AUKesaUwjKmefasUufZqs9ghopBkA0BidpPhBkC7LY5WO.OTLDLGH4fFr7psNKWpLSOFLnJRGpRP2Wh1v5t+fg0352u47ztkBw9JPuND8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0zywrBJjx5bwx4igKRhI.Rxfz5RdZzV7scxwt7w7HyXRVhXv+.OJld5bNNSOMSq433h7ODK2rxa78aDT.LkIx71w4b9XjmdOpiiaOWq4Pl7Ghi4gheAv9l0w+dny92CcBtG5DdOzo+8PmA2CcFdq5vOD4WWxxmK2l.DFch3LSa6SDmxHxHs9WPwrunr
    


  • @Natanr First, you need to modify repaint() in the main callback for changed()
    The Midi learn works in Hise...
    Checking in Ableton...



  • @ustk Well, I think I remember something about that. You need in fact to associate a hidden stock button to your panel. This button will be used for DAW automation.
    I might be wrong, but I reckon Midi Learn in a panel doesn't mean it will be accessible in the DAW. This why you need a hidden button connected to your panel by their respective callbacks.



  • @ustk Thank You, Sir
    I Already Made A Few Other Buttons Which That Connected To A Transparent Button, The Automation Works For Them But The Right Click Still Missing!



  • @Natanr I made this in the Panel Callback, and if enabling MidiLearn, indeed it change the buttons value.
    I don't know about the other issues you have where the button doesn't show up in you daw.
    You know that the "Midi learn" only show up in the "Plugin Preview"

    inline function onPowerBTNControl(component, value)
    {
        if(isDefined(value))
        {
            component.data.value = value;
            PowerBTN.setValue(Math.round(value));
            PowerBTN.changed();
        }
    };
    PowerBTN.setControlCallback(onPowerBTNControl);
    

    I should say that I don't know if this is the way to go... 😱



  • @ulrik I compiled the Power Btn and the Midi Learn works fine
    powerbtn.gif

    But it doesn't show up in automation in Logic X Pro

    I guess @ustk is right about not showing up in the daw



  • @ulrik Oh Thanks
    I Guess There Is a Bug In Windows Version, That Won't Show The Pop-Up!!!



  • @Natanr if you compile this, is the Pop-Up showing in the Windows version?

    HiseSnippet 1583.3ocsWs0aaaCEVNMtXwaFXEXur23xCCJ.dtRJR1VMnnc41Z1ZRMlaKFPQQghDsMQkoLjnSZPP9Ou+AaGdShR1snH.UN1Q7biemK7xYbdVLtnHK2p0Nu9lkXqV+P6I2PYyOZdDgZc1wVs991iytFmiNjQsN7lkQEE3DqVsdvevEn0NaaId92mcXTZDMFWQxx5sYjX7KIKHrJpie9eQRSOM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NDNs.itUOtoRhYPD8mycUzyPbyLzi+A8DwfPwGteHLn7ey5OEt4l3b60Sh8PuCtAA7GDiCbdOW0x3PyXw4YqJv5feUv.eEjnWOfHH2eAWm2rbOi.gvOJzQJzufZF5pCedPYsfYyXwSQxoSL5.S0k+JjOddDcFNwtgSRnoPxEo8GTFU6z7h37rT63rEKynf86AW2AvH2Y0NpMo3X7Tv.I1Rdqm4KUWhXgX.hE++fJwLC0xPw47UY4Yqnk1dShW4VZ+9tCpm3T9QYpaMOjaWC++hLF9UT685bamc5bWGTSVSmtQdJikhy2HadeC4eIEsoqVbINWGj0BBWft9Mza+4ugtYCDwxsfLDLidFkvd0RL8ycucK09V7avqPEHJSb+8t56uyuEsEAtkdm153nk.x.zZIZJ5Mmw2ITaDvdU6ABzNFeEzekrofcZeLt3irrkBYU0IPWAeES4m3S2OCy1M5WDagB17gdpF4j6fZRwbmOtZb7VeSUd6R02T0pwloZ8VltZFgNNJG5zCZHQ1vmA.IEmiYQk7AObKq0aKBZNKKYUZDqdGa71TULfhjZsFwa+gVPX2X1F62j139Zg6iZOlvhmuY7t0FvKTZ7sFuplh619joSwwrJvtc6S+mu8c.aIOzbFrGVNgWpdwpESfiwhw.RnP4LegLTPvUUL1Qu5YBllHF7evihoqtliyzUyzZQTbd1GhkKT4sc+cBJ.lnhhwcZeNeLxsb8Yam9NVKfJ4ODGyCE+Ff8Mqi28Pm8uG53eOzI3dnyf6gNCuG5L5KpCeSjeeEKagbYBPX7Ih8Ja05DwtLhJRq+Gjj5pxO
    


  • @ulrik This Is So Strange, The Pop-up Not Showing Up!!! ( Windows 10 )
    Note: Hise Build - Feb / 1 / 2020



  • @Natanr strange, it's working here on MacOS



  • @ulrik Not Sure Why.
    But I'll Compile And Test On My Mac In A Few Hours, It Might Come From A Faulty Build Or Hise Version.
    Thank You , BTW That Ghost Button Trick Did The Job, I Just Linked An Invisible Button To The SVG BTn Just For Automation Purpose 🙂 Works Just Fine


Log in to reply
 

8
Online

650
Users

2.6k
Topics

21.5k
Posts