Show / Hide Panels With Knobs!?
-
Hey Music Lovers
as The Title Says, Trying To Show Hide 2 Panels, With Knobs,
Knob A Shows Panel A
Knob B Shows Panel BThe Script Is Okey, But As Soon As I Hit Compile Button, It Just Back To Panel B, And Wont Remember The Current Last Panel Correctly.
No Matter It Was A Or BContent.makeFrontInterface(350, 250); const var Knob1 = Content.getComponent("Knob1"); const var Knob2 = Content.getComponent("Knob2"); const var Panel1 = Content.getComponent("Panel1"); const var Panel2 = Content.getComponent("Panel2"); inline function onKnob1Control(component, value) { Panel1.showControl(1); Panel2.showControl(0); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control); inline function onKnob2Control(component, value) { Panel1.showControl(0); Panel2.showControl(1); }; Content.getComponent("Knob2").setControlCallback(onKnob2Control);
HiseSnippet 928.3ocsV0saSCCE1ocdrVnSfDO.Q6pNIXJMrwPBgVYcanJXaUzMDWfD3k3tZsD6pD2AUS6M.Idkf64o.wC.uAiisSVRGscsUhza54mui+xImebqHgGMNVDgrJczfdTj08vsGvkcazkv3nl6frVFuOIVRirMp1dPORbL0GYYU7UJEVkV.oe9yVaSBHbOZlJD5cBlG8MrPlLSaq5ulEDrGwmdDKLm2qWuomf2PDH5C7oH1A0i3cF4T5ADkaEvHqE20mIEQskDIMFYsv1B+As6J9L23+6XwrSBnJgZn1PfLp2SD3qXrRKpQWVfeqz26XDDkVYYghlrvCw6y7YWqOKabesA6LD4yGVElD8pc6zyYTzyJG8VvPuGfa6Ew5Iyrn31cwM4vGpND3SPdZY7EUXwh3FBvCtbsPxYz8h.gqQT8Ia37Ha2MbV84UJa9AeLhk1mShreMWbRM6WXmB+TprgHrmfCBUWQacEEtgQ3NQDtqLpSpEgSCF+QYLeiyRqzcxXxeZLd.iSs6zm6IYBtsfqeCTniDAU8Rg9HH5A8oqVo7EUJWxbzqECeNS8rlJlFCtCYPmDuTefSLksVrRqFSCRPvIP4d0gYyswZ2Ym0Nii00lFV6NIV6li04H5ABI8Pd0UKeQ4Rkurr8MM0oyHskDr.ZzHMqFdDMIfU48COgFklPRcD5hFtMcwoqM0yjSx4nf2jyjG1ilHO44LnjjJzRWHggfqRcC8xIMzsCX9zHDCBxcv55.jl7ICI+9O+4u2BM0fcGBr8G91u1BcbycHRhZrRBc.J1iFIYpLg0Nzyg40lgLkv6PiOSJ5AIrqKBf+eqL9KYiz2r9fLgZ0QyPbbyEmOwFebJYhSkzQhp5ZcXVBaJ9GGe99w0+LyW1My5mp2kxNsKDTr0WAYljFltNpzhHzUNngz5lW84oUMVEySuktE5M1WyYkdW8CznnWpZz+tEA1kI76GPjCufSsUOw.zNMzlD01BdLSNH+V+YXqmyTuTdZo6CvsXRutiluEFAeUce+m4axcHpf2sSGpmLirKf268y6EFlAp7VQeIie59DYDCJtvGzOrMTN3QAlvgRtXUATA0.IiriRVkYZS49ZgqfmDi0TxVIFqkZDER7hDezyLIRcKkkzZ.Nw0WVqDbqQP1954WXryZNnP3xSezySkJdLv8QiwcNv7j4.y5yAlMlCLOcNvr4bf4YSDi5dquruTDZZS.Es1UuJvxZWNApxzUjn+BReEQgB
-
If you have
saveInPreset
enabled for the knobs then knob2's controll callback will always trigger last after if you hit compile. -
@d-healey thanks Devin
It's A Main Knob Control, and I Need Them To be Saved With Presets :/ -
Any Solution?
-
@Natanr can be .. creates a 3rd panel and knob but hidden. and active save in press on knob a or b ... why do this with knobs? buttons do not suit you?
-
@adriano I Attached Some Animations To The Knob1 And Knob2, Can't Go Further Without This :/
-
@adriano
Tried That, It Seems Not Working, Same Result :(
If I Change The Order Of Knob 1 And Move It To The Top Of Knob 2, ( In Component List: Interface )
The Last Panel Is TheOne That Attached To The Top Knob, Which Is Knob 1 :/ -
@adriano is right. The only way to do this is save the last knob press in a hidden button and make sure you restore this hidden button last.
I think this is what you're going for:
HiseSnippet 1036.3ocsWEraaaDDcoj1TK0phZfbtf0mjKRcDYhaBPQQTsrcgPpcDpbL5s30jqL2ZxcEHW5TgfTzOqdL8in25GQuzytytjTjRgj1V.V9h2Yl2n2L6L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HVx3WbDQFxfZC7wwASfxNGJvDNTdqFIazP0Rjbtu5rJyLgxc0GtF9jpzRc1HUoUlRT.wIT7FmjAepsW2PKA3DWuDea7QpylKl0hw82oOJ.Vp9MNNpTw2.bubL1qAlmrFXd5ZfY20.y2tFXd1Zf440hQ86Y9gXoHHoMADL9.86MFFGvIPUlthD8+KUW61.
-
@Lunacy-Audio said in Show / Hide Panels With Knobs!?:
press in a hidden button and make sure you restore this hidden button last.
Thank Lunacy,+10000000000000000000000000000000
Exactly What I Tried To Get :)
Thank You Guys @adriano @d-healey <3 <3 <3 -
-
@Lunacy-Audio
Thanks Man, Just Used The Script On My Final Script :) <3 Works Like A Charm
Thank You