ViewPort scrolling
-
@d-healey - sadly not. wont work in the real project --- I completely replaced the viewport and the label, still broken, not doing anything different...
-
@Lindon now I'm getting very odd behaviours, the knob I'm using wont reset its value...
HiseSnippet 959.3ocsV80aaaCDmzwLq1qsnsXe.DxSt.cA1ascCHXndwNovnIoFycAaO0QKQYQDJRAIpjZrUf9MourOa6495dp6NJYK4VW2TCL8fft+76te73wiZbpwWjkYRIzVuXdhfPuIaxbsMZPDWpIiFRn2lcJOyJR8JTc37DdVlHfPo67TTAsUSh64cO4Pthq8EUpHjyMRewIxXosR639OSpTGyCDuPFWy6G1ejuQOvnL4.e1g0kjv8ufOSbFGcqAiP28n.o0jNwxshLvmCMAymDYtRW3+4xL4Tk.E5Ql.ApPMYPjTELdwZMiPnMGWsx2oXk+MrSkAxk5qp.2wYvqBQ8Z.swlnTuu.JQqQolET5trI9oxDakEjOeMajF1PB4PotNUJ7kz3eorAFvCsc+X9EhiSAgkH573tcefG759GztMTtyrdWxS8NWJtJwjZ648SdK.OSXGXhSLZPnydK8XO.YEvmoMS+zfbVQ.3iTqjZgWXt12JMZOi1YFQlZTc7W.6APfU4h629Oa2ZYV2OS.w6RPbrISh3+88V33Ase8As2HAPzk4Y.WolB8UcVM8HGcxnqmigsS28eDnsPoeDWOSDzwsTpsBNyXEOW2ww01uts2GZJLbs1JSpRjtVy34hzMAriNOdpHsdkBcDZbVsab2qW2neQsqliF8Hsz97DQo7wFU.1kge+w8tjxhOzE2njgfqVWO78J6gEAK1KIx.rId4VKwsHpO0f7gA41kAYhRFHRcA3qXtclU.+Ggg+ySH+5ngbKGOQURKfpIhTqDqHzghKgQREmuZwFJxtvZRb7troAB80l4uph0C6Ou9nrqjA1HBkQuWCBIRHmEYQo+lRHqzDWm4HgWRhaVPhaURhS3SEJW9uAy88JImPlWWHgmBwnVvpyYq3U1ECYasK386QHSmUo68vCpS.8RbW6Bcm3bkUhmeAgFkKtxDdm2zewBrTS+21mqjyzwtj2hAU3SDgVbecIkZ9Y2Y+DEWu+pO4iGUBCoMA4Jtc0I23UTkFfp8JiKwQhZXWXd8qv9BFm2ciiyutT7trwRqez54Xi0vQ7L1+Cbr7RvawNJLT3aqHXS1w+11di2mI8+hI2J0yNkaSkvlM6r73IPKnu.xtVKTY3IlF33fB4tnLVAlHzANArSszXOTlVZr2BijXtep4k9EySvqYugSCvIs6uJZA+dCH6sbPBi0c+tjX3F+W56iK+uEl3sdLe2Vf462BLObKv7ns.yi2BL+vVf4G2HF7ms94bqIt33.nX7QtA5T5QZbbjqKj7eHcJpyL
Oh hang on stupid again...nope not being stupid - definately broken - lots of stuff broken here...
-
Maybe this will help:
HiseSnippet 1145.3ocsV0naaTDDdOmbzdGzJJhGfUVBoyTiwozFPDpZZbRfnRRspSCfpppVu256V4y6Zs25jZgxqAOD7Pf3IgmAdCfY16r84VmPkE0JJ2N+te6LyNy10n4h7bsg3Eb5zwBh2G42apxl1IkIUji1m3ca+iY4VggVvZuoiY44hXhm2FeOxvKXSh62e+n8XYLEWrfEgblVxE+nbjztfa2cehLK6PVr3T4nJZe+cOhqUczY5I.d1vuMYLiOjkHNggpUym38AGDKsZSOKyJxIdatmNdZuT8EpB8OSlK6mIPhsH8.GUv9PcVLhXjKoSpLKt6rycNA7R2EQgMJhBep+wxX4b9KhFerS.cgEUiGd0VFdarD71pJ7ZWAdq.RdUfzlEP5N983F4X6BIHd9P+iTPxY.CB6UgRgtjZ+0F9czfFJaqQrghCM.wbKh1tc6lT3eM1ILDB84VpzJFkSeH8E0i0I0aRqyYV7y.YdJ90v52W53vSk7gBEtLdBeH9MQqyE3hT3T3Vv0WT+kyc94LC8Lo3hwZicKXSlgrDgsidzXsBHhpOWi5.rVX3ST59WsQNoKaPWlRjc0VTHFMIrXYqbgsKjmsOSOwJUhnASTbqTqhRZD9qgAnOSA2YSk4nu9AgLI0F0f9kEQsVYBUhME7Wv.sgFIAcauCUR+tkkSk28tMBC.O5bICi1PZPR+bZZy4d+mjw1znFMooX7KHPR+L58nODbI8QzDDqEWThJ9.1XDSaP+1UJKlYF5juC3I3ujVCfafOSvsQrE7da65mAW.cJjzJ1vt3wYxDkH9TwqsQtyzKjurIkgIZHlZDwX3L3xfvKwvZnTkAwQ5r3HUqboILeXzYQ7YIilP9JahvEkmm8Q3DU+bfrqNWh1+K0mo3NgWtS30VHTbXb6SGVVVe3bDs71iHzQipdF51n1sd.vsfIOkoRDwQtCRkSvIZq3opHGVCuLj9lhFLXkxJ2zLgYkhwFglqyvH0jQ8ElpQJTQn6vxsb7u5VNU6HxKhcUTTqNRIsOcrPcU8IIkAbn8TsRTApZcMm9jxlSh3Y4OhLF6NMOcRb.u5nAxa5jaW5jdYxXgw4fa36xFqv3mez9LKCaUVBK.piEFqDiBd6KNGl6Tz3LveeQ9PqdrC2kEJvnj2Yj+5Ea796Ns57pKvKoPP26O.xTW+.j52HE3Z9dcih85VyZgi8abayM8K58f6guG5zoyVL22+9R9daP3XlAbaE+WEsjJ727+LvdEms+zrK4sGAAC+zwSxX1kmHhOCnT.TytzXHbTiBt8Ns5yD9eaL46JDuieWokmtZLVaEXDKweOfwxGWbK+CFL.58t.fa5e3O+94kDjhgYIGyrFIVjcxjQ8fd6bAr6JnzC6Y3UCuMVP2dV8WOgJ1Q7OvuRgagzdkB2ZlPxHF2neEu35L97ka53.XR4d4V.7DRflN+drue6VsIifWR8JNGO9eAT2tZat2ZXyWsF1b+0vlGrF1r8ZXyWuF17MWqM3iXe7DqdTw0AfQ2Cb8S87NPwfJKWUH4eA3qPa4B
-
@d-healey said in ViewPort scrolling:
Maybe this will help:
Sadly no this has exactly the same problems....
See how when you init the snippet it should set the knob to 0.5 - but it doesnt,..
Again its another of these controls that doesnt have a call back theat will execute - and should have, here:
HiseSnippet 1275.3ocsW0naaaCDlJNZqxasXcXO.DFX.xKYd1sMcCyqnt4usftzZTmksghhNZIZIBKSZPQGWig7t0GoArGfs6njskRrc6BVMBhDui2wu66H4cpqVEvSSUZhi2YyFyINepauYRS7AwLgjbxgDm63dJK0v0zLQ6Oa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Pt15fO10dD7+fwYaQsF64luecEl+KmbHyvvxu4QEDoi4Zi.IQmC4W.8xjUL1y8Pd5PiZrMry2GAH68NveyxE9vNyJ1CzT7h+EBdaTmXaclkR52ozNaTwd2G+UoCB7qBlaOuuArHmEG2xMqfWQPPHyJNnLH5vuJH9izNiYZXYJrdECORA4a+NSjqgLdqtyF7yJyoqySS6PtdGUPubpvIILS4F7vtZyU.7aotpvNmj.uOqXWu+u0026KDuqaWgIHd0XbqUfQXG8GBLl2q7scOZv.nUhk.ba2i+sOLMFSx5MK5TlQKfjs6ylLpGzpR.GVcIroFusyYK7pfrwMwwHCziKCsC9G3WtxV3XmbkslqjLhEnUuNH6tDra7aYk.XRZ+PDO3KhfwzEWg351rQSxH3CCdcP.F9eMbBX01buafM2+FXyCtA1r2MvlGdCr4auA17cazF7axdxDiZT1wAPP2irWk63bjjA6rr6BI+KJtGzg
the button should move the viewport down slightly each time - and it does right to the end , then you manually move the viewport back to the top - and it fails to work again...because the viewPositionY never gets reset...
-- this renders the viewport programatically useless..
-
@Lindon The setting is uni-directional as Christoph put it - https://forum.hise.audio/topic/4863/script-viewport-position/3?_=1657893745416
-
@d-healey I guess I should let him know I require this then....
-
@Lindon I've pushed some changes that write back the position into the property, but not sure if it works 100% for what you want.
-
@Christoph-Hart ok great thanks - I will try it out.
-
@Lindon The viewport callback doesn't get triggered when you scroll though, so not sure it will do what you need.
-
@d-healey - yeah I might be able to live without that,,,
-
Is it possible to initialize the scroll position of the viewport or save its position in preset?