Table PopUp for multiple Tables? How?
-
Hey MusicLovers, Trying to Change multple Tables Value Popup with a FUnction, and NO glory Yet!
Any Idea?
Cheersconst AllTables = Content.getAllComponents("Table//d"); for (Tb1 in AllTables) { Tb1.setTablePopupFunction(AllTablesPopUp); } function AllTablesPopUp(x, y) { var v = (y - 0) * (12 - -12) / (1 - 0) + -12; return (Math.round(x*100) + " %" + " | " + Math.round(v) + " st"); }
HiseSnippet 1043.3ocsV8tSibCD2afs5HsT0SpO.VHUokKPHatTBQnSGWBjdoGARI.B5WNY10IwkM1q75MGqZOo9k9p0mh9PbuAsi8tjroW3JJpmQhrye9Y+aFOdr6IEdznHgDYs14IgTj0WY2OgqF0ZDgwQcNDY801cIQJpDmppYRHIJh5irrV4GzJrVaUjY7gW1jDP3dzYpPnKELO5wrwL0Ls8N3Mrff1De54rw47t1Ac7D7Vh.QLvmUrqfBId2RFROgncqfMx5KNxmoDx9JhhFgrVsovOo+Hw63o9eIKhcS.UK3h5CSTp51h.eMi0ZQsFwB76cebGgfYo2rrvJoYgu0tKymMU+rrw2XLfmgHe9vpv7zak4nmad5UIG8V.krxQoUSozSs66IYgpYVz74Ks6vgMmADHsmmJo9hJ7AK6VBvCtp7Xxsz1RPXJBmZ0prE10sxl6udQ8e5ArEDovuJH3bBv0H7Kv2OACoJPcKw3PAGjib1v3xN63uwl6Wr3.gD6b9MtXFeF7MK9qEwv.zWNhpLJ6IBiCaGy8TLA2Ypqf5KBgI58vTkYDOuQm61Bmb+LhmPj3I.8bRvaiqrI9YXG2pvma6VcS7NfPp5RZE6aPrdJPIUEK4XmtD0nxRQL224tm4Vw36F3uaCyO+FV+aNWljZNRoC12OkgB9IBE8TtilWqAjG+uMMXvBsoypRQP.UtPy5iFxOEPGd73anxsf7PPLcpiP8x7Eg1ObQX9yHdoax4bTv6vYpSCo7G5jCJqx.JXKjwJX4Ulx00yJWMaeHFTT9Day2tHCgy2jvmnHHq+z1sVsxyOlbZ2jiS1KmbitxKan+rdKi7MWEE2XR+Nud2T4KZdWRib9GbcPsFOexOS2K0tzsZ4R4rOr94MKosmgOl+lerD+5fqyl+We5s8JA9bWFdv+yxiG92.ibiT6oIkGUln5CkI9C6F69QIhRsujzndWoaFQLxyGHiZ7KiOqWFwa68SUaTmbUzdSCj4B7ICqbRoIGmbbsVOPfbQmC0zAZmjsOC68gTohoKqrNjNAZsm1aZM6CoQ2pDglBgr9CP25+yRg6xG7I4EdGyWMBpds9KPXDkMbjRKwQlxtG8RTM2R762dvidI939uPmegeb.QM+0A56.yL.GOmqGrtOKOhoRxeG4+a2Q7Xo3Ss6wTdiVLGKr.NpOM+YfiY2rtt8QCFP8TyH3p1su5yy0nnyDwJFeHzEWxf5.6ShG2GdbgGEVcNmFnaOZUPWQkJWQKqy.8obeiveCiLitZYqLit2aDMl3IEu0K8Pu9t6mXz.bhad1xZv6m.Y7z9d11UJWAMFdFwa87zg+1Pu0Eio5Rf44KAlZKAlueIvr6Rfo9RfYuOIF8K3dUrRLN83.nn2QlNcVVGw0MMLUgn+A.deoeG
-
@d-healey Sir David :)
-
@Natan Script watch table is your friend
-
@d-healey No idea what That Means?!
It doesn't response!const AllTables = Content.getAllComponents("Table"); for (Tb1 in AllTables) { Tb1.setTablePopupFunction(AllTablesPopUp); } function AllTablesPopUp(x, y) { var v = (y - 0) * (12 - -12) / (1 - 0) + -12; return (Math.round(x*100) + " %" + " | " + Math.round(v) + " st"); }
-
This Works :)
But Is this Correct?const AllTables = Content.getAllComponents("Table"); for (Tb1 in AllTables) { Tb1.setTablePopupFunction(AllTablesPopUp); } inline function AllTablesPopUp(x, y) { local v = (y - 0) * (12 - -12) / (1 - 0) + -12; return (Math.round(x*100) + " %" + " | " + Math.round(v) + " st"); }
-
This Works Just Fine
HiseSnippet 1063.3ocsV81aZaDF+LAOUXKSqR6CvoHMISIgYSYMfhpVJjvJqgDVfD0r8hpK1GvUL2YYelh0Vk5ml8QYed1q1a2dNaGvjRxRQaGRX+7me286d7y87b87E1zf.gORqvfHOJR6K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0vWUof+m4aZi5s0Od3PpsbIYyq2902aW4+anx4hPIiOBZM3yfbF8SCm1Gt2hMEXBmScU0b0xopNlHapjUQl9TtSrveCiTiVJYsTiV2XDMkX6KdicRkD00BdTrFfS73aDU.tZFHiWTLUW2rhIZJbCk2XaqBE6Abe8XptAXd5Ffo1Ff461.LOaCvr+Ffo98hQc4vWDJESSNl.J5cbb0QMsi4pBLwYjn+Ad3j+XB
-
-
@d-healey Yeah It works, Not sure if it is Bug Free!
You have another/ Better way to do it?
-
@Natan My only suggestion is you figure out why
const AllTables = Content.getAllComponents("Table//d");
doesn't work.