Macro assignments SaveInPresets
-
@Adam_G Have you called this:
https://docs.hise.audio/scripting/scripting-api/engine/index.html#setfrontendmacros
The macros are stored within a preset (you can check it yourself, they are part of the XML). Not sure why they are not restored correctly on your project, but in general it should work.
Try to make a minimal example that demonstrates the issue.
-
@Adam_G I don't know if this "Bug" was already fixed but the Macro assignments can only be recalled if the Text Property of the component is exactly the same as the ID, it works for me this way.
-
@Christoph-Hart sorry have been away. the biggest problem im having is the same as everyone though, the macros go away when i close (not remove) and reopen the plugin.
i see that i can put the same name in the text field and it will work BUT that breaks the look and feel which is in my entire plugin. my question is IS this expected behavior? and if so, why? seems like a bug but its been in Hise for a while judging by the posts on the forum..
-
I tried to reproduce it but it restores the macro controls correctly even if I change the text property to be different from the ID.
Can you make a snippet that shows this behaviour?
-
@Christoph-Hart yes, i have used the music box tutorial as example. you can see knobs with the copied name in the text field keep their macros and the knobs without (reverb amount & size) dont.
HiseSnippet 5939.3oc68zzabbjc8HxVRjVTVxqiW60FHsG60YTrLUO87IkVsheKoUjhzbnjrxlMxMmoFxNrmtG2cO7iUKA1.jCKP9E3bJ.6k.DffbLaBBVkC4RvFDDjE4PNsNGRPtjXDfbHAAP4Ue0c0eLyzCMomwvZ7BtcU0qd06i58pWUupasticcjqqsiTlI17v1HoLWPt1gVd6rvN5FVR2cQoLSJuZGWi5yaefz7G1V20E0PJSlwtMt8LSLtD42meq40M0spiBpRR5g1F0QqXzxvKn1Od16YXZtrdCzlFsDft3r2sts0B1l1c.ZYLYUo1502Ueaz80wfcFYoLmcoFFd1N07z8PtRYFed6FGVaG68snv+PCWisLQ3B4kpAHhV8x1lMvTLtVoE1wvrw5bd1URJy4VOPBLFUB7pxqZzvvu9.IwkHMnDzCQ4QlyDl7FKD4kWj7TEHuDHoyHPRiSIoKKWqtiQaufVvzyKIeWKOjSScPrKRJTXkNye7aHaXU2rSCTtr0PddFVa6NeGOOaqo+ccydkaL0j9M+.Wjy5NHWj2iLZrMxyMFDOrypHXv30i+uErgg2xa5V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j0YIHITe+3lMecgOOViG98JllFQbWeIRWoki80rpQBIIjjTPgjDR9UXsjRL7KI6+gGj8uJOAkOsk8mIEx9KJK94Pb.D8gzeMMNnlWm56heq0bS3KB1WwtsOImy5KS74pvmmFwXdzIa0lmRYq9koRkyIO2cVr1FLEF4YkSwa9zBcb1CEQVoeXrZibMo9wKLKslX2z86.N2Eu5TDz4Wwe9u2r0535E40tI1Mtp3rKU29z65VImR6koDutUifWk3KxoOpVXzi.ufLQ8OpJ+dYY1jwQVA3ECBnXzTDNLuJaC66I1WFWkm3qZdN46S9LyQmdH9O0DcaSIjOvqm3aJ4qKA++UsfqRHLhKGILBsiWbD32ZpS33H7qY.ii3ia8h3HdQbDuHNhuREGQxa66WyunhOgWbDbqe0NXkCQeM6kEXX+UvHgWQnWQdcayCoqWsrgI+be9FBUqvpuKgC8q96J9ege+q+jNHq5b41re1Fty9gAGr0qMa3YLu9reXGcy.47O9W94+Cywd4G9hpCNgdMheMYelRY3GFxYoT54k2P2pgcK16sIsPfgdOotm8em6WjfcNDaBAKBlt3W+uSC6xykZOVE5ImLagB+iIxICfGqgfimQ+WK82PlYCpfm6OZSqWT9CG9D343eKgVeGHZ.12RnIokTh3G22cRdw4g90pEpVDpwVAQ1CdP+Wu0pFg9nVcx8gUHSp+d.P4qQhW19SkiGXHLFm1ez.j50mRjLw9ThzRuti8Spy9BRi+2UGRMfVwhjg9yI+QJqa6mzDYY0oUweq1LdR85rbJKEuG2Gs8.0iGOviwiG3w.18txbCbOle.5ArL5IFv3ilYtNd1sn1cPEquDcw5L9WSfLiI8+66p14H
sorry its hard to notice but youll see the number tags poking out of the upper right corners of the knobs. open the vst3, assign the macro, open another plugin in daw and then click back to it. macros are gone for those knobs without the copied names
-
@Adam_G Ah, now I see it. Yes it was in fact a trivial error that removed the macros when the text property was different. It's fixed now on develop.
-
@Christoph-Hart thank you so much
-
@Christoph-Hart unfortunately im not able to compile in vs2022 now
-
@Adam_G Did you clean the build folder?
-
@d-healey i used Build > Clean if thats what you mean yes
-
@d-healey should i do something else?
-
@Adam_G Nope, looks like you maybe found a bug
-
Christoph just pushed a fix :)
-
@d-healey thanks the newest one compiled for me :)
-
@Christoph-Hart confirming macros fixed, thank you again