Figma to HISE?
-
@lalalandsynth said in Figma to HISE?:
A panel state cannot be saved in preset iirc so do I need to always use invisible buttons, knobs etc ?
You can save a panels state in a preset, you can set the panels value to an object or array
Panel.setValue([]); or Panel.setValue({});
Here I save the state of the panels painted dots (just an example)
HiseSnippet 1103.3ocsVstaaTDEd1jrP2EpDUB9+f+0VofqMsTpJphz33fLPRrvgHPUUUS1cVuCY7Lq1YrSrpxCJuE7F.myLdsWCtAjEck7k4b86blykcXkNkaL5JRPz4yK4jfONbzbksnWASnHCNhD7YgiXy3zQVlkSEJ5PlhKIGNujYL7LRPvteGJZPzdD2ye7sGxjLUJeEIB4BsHk+ihIB6JpCO3GDR4wrL94hIMj9IGLHUq5ok5o.r1MrCojkdEaL+TFJ1NgjfOnelvpqbXxPB16Pc17QE5qUd4uPXDWJ43gtjQfg7jOVKyPDiTI8JDxrg0gug.VY3pjwt9jwmFdhHSrj9pjxm3XPWoQy7QvNqCucWCdcaBuNMf2FfTPCHsmGROHbTZknzthChmOJbfxxqxYPZuIT7xR1422MrmFjPYaOgcE+3J3vRMRdZmN6Sgud32DG+nGEMhao1BNsDuooVM0.E.mqGVwM.mWPsUS4wvUjwRmwp7ED.4ZGLla6omTpUvgjVNts.K69SavBIsP6MP4sWq8c1CccrPIEJNMepJ0JzJpV4TBMbkVljVa08A+JAcheabjHmlXgLiN2Sj94uf1Re4uwSssdXbTzRkPWeAJQxqdM3snn3HvvFsj2trR.P0Vg4BukAAtEPzcFRnAW.sdLo7RnHMYcD6Bpkw8Pn3w9S5oVHFSpiwjwtnXb6bnW3kRYRqN2jm+X2Cl0.Th43YXZuPXPj3CBOuwdPfsJI9eLsutPX4d145JZBjLv91YX1v6m9Ronz.IBfU6a1mh+LeeZ2N3GWxI9VD6Kg9I5oF9xfbI14yf7gC+2EFwaHmjsSkhzq3Y.P.UhfJsgSMEzEToYZqAAJTvsr5y3uTAom0tDDN4ssto0yodyAHu07kmle6haUzv8jb.Q.fgiq7uoPjaOB5CwTAXwTTpjZ0bXOsfoFyybDusNO.OMpIOUa4moRbwc7swz+Nq77MxaQMgjWsQ13Lvp6RwD0zIWxqZV6iBBCFVeZS36dZSyggo9R6FBpUCTB6Ykb06ZDIYQ+.NYZAp.Qst4R2udtja8f.l97gg9+6vKI3dge+nyN8UulP94AGwrrZi.1C7QIuxJP3GbDeFrqvOrKJ7Ht4JqtzI6hFPvT+at7lUaSDGLe0ge8fqEY1hlbK3hwE1lTZNcBRmAA.UnRReccCfAccOrp0POSImCqx9GiogED5roRlc8sF3pxELfK20FUiiiUFgcdyUo+usJ4+JDeP3PgMsXyXbmMfQ3Z78AFWr.99g8yygQ4q.3dgG+Kue11R7ylGeByVIfJnvSmNYDLQMkCdWgCivpgcv1.+4N3YLCLhqxbG9S3YAyt0kNHyt0LISXoU52j5advU72yQAvjx81MQgmfmocqaaBC6ztCYB71FuIMEC+u.5L2rNe4Vnyi2BcdxVnyWsE57zsPmudKz4Y2oN3K58xoV8De6.PXXe27qff9JFTY4pBI+E79olj.
-
@ulrik Yes, but can I set them as plugin parameter as well, in other words get them to behave like normal buttons, sliders etc ?
-
@lalalandsynth Oh, I see, that's tricky I guess...
-
@ulrik unless I use the invisible slider trick, wonder if there is a better way, bit clunky.
-
It does not seem to import the dropshadows and fx even though they are contained in the svg. Its very close to being able to import as wysiwyg.
-
@lalalandsynth An invisible slider is still the best in this case. You could make your own from panels thus have only one component, but it's quite some code to write. Though for buttons it's easier to just use a panel than invisible button + panel
But, is that not possible to use a custom LAF?
-
@lalalandsynth this 4 instances of the same svg knob in 1 panel
It's doable but a bit tricky, the 4 knobs values are stored in the panel and recalled when loaded,however you will need a callback for each knob and I can't figure out how to do that in an easy way, maybe someone can come to rescue?I use normalized values in this snippet but of course you can have whatever values you need.
HiseSnippet 3159.3ocsXs1jhijckpmA6sJ6M7tN7m7mX6OrA8R2pk3oHFuw15ARBPHDRBIDczwF58SjD5IHuy+Y+OvNETUWTyzy31c3kfnpJy7dx7jm6My5lW9zXCqrr3zV2cuz4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74c.B06+CDxJx75l9wHmF+9mc6qhKxr9b.xm86VkfXouNe+0CSW..YD5YDXY14u825bsCfX3r6kMUuoYbA3AWDMfdzI8ylplCSMCb+k02DbnGxKxz5DfQWDH6v33zGgb58MAe.I31PfKhvMnudb+mEj8wex7e4z9Od8b60Sk2PieEXOwqTsHGqt+zks2sxxU19takl2234daG3mBFttbFtMSl4E+2Sb5Yg5kh3WMKg+km+KwH2bcJWbt05ntWBGd3GenyOcHa6u3XOdMSXSj2WX3lpKj9qAraTwAcqzau1twPvSte463a+K+N9aKyfw0aKuwv3n4Qd4qSrh9kJ9PqGuhs4M+OxJfo4Wdw+u8oW72bTpkG3c8+isu92W3aq69WauPbM2Ggu3Oa99oVs1Nu4+a8zzAlYvpkXkl60rQtizpzyv5ZAEtuMoUVPdbxEae718V28a9eawO8bEaT+v4ma38gJOyb2m637Gbs7bbyu0dv8.wUOca.fQ+6suDWk81NLwkVoc9icHAgofaQcZkoUZMOhO0BbIBfhup0OulH+t1qhMKB0xeYIZZpK0iC.72untHM09HJyK+7s0s5+2payWKE+8s48.Oy3KywW8E3Hve92CN9X0t9ssmYaCRL4YB98so182mRa05ZF.Nf6vR8.gRs4JNHFWjZXAV8HP7Uy4MfytA5k1vMsaT.Qv+l4Ri+avmGGDoo8cONHxSC15.3wCw+UiqmmZpm1u4RO.NEcoTh22dUS6NHOcRpcaXH3VG7L89qFFMa+2ANr9kwz+a.yfuALC+FvL5a.y3uALS9Fvf9qhooppXE4wGtdb.zA+rKWjc2cyhz.QVWhBa8+vssccq
-
Its a bit hard to figure out what carries over from Illustrator and Figma.
Sometimes the colors are not the same etc.
Would be helpful to know how to prepare files in Figma/Ai so they look the same in HISE.Seeing that we now have PS style blend modes it would be amazing to have Figma/AI style dropshadows , inner shadows , layer blur and background blur for vectors. Even if not editable, if it would just import those attributes. I figure that would allow a seamless transfer from Figma.
One can hope ;)
-
@lalalandsynth said in Figma to HISE?:
Definitely possible, I will have to dive into this.
How can I do different band different color via LAF?
-
@DabDab Dont know , this is just a figma project. Testing an import.
-
Wanted to see if I could do a classic cheat and just move the little green indicator rather then the whole knob graphic, seems to work nicely if you set the export up right.