Having a callback function in a List property when creating a template crashes that template when trying to use it somewhere else
Having a callback function in a List property when creating a template crashes that template when trying to use it somewhere else
System Information
SoundFlow 5.10.1
OS: darwin 23.6.0
ProductName: macOS
ProductVersion: 14.7.4
BuildVersion: 23H420
Steps to Reproduce
- Create a template
- Add a Custom type property with a Callback Property assigned to it
- create a Main 'List' property
- assign the custom property to the list
- Load the created template somewhere else
Expected Result
The macro to not give an error
Actual Result
something went wrong TypeError:Cannot read property 'templateConfig' of undefined
Workaround
nope
Other Notes
Links
User UID: 5XIjMXcDPTODuJvzOF3KqorcdhT2
Feedback Key: sffeedback:5XIjMXcDPTODuJvzOF3KqorcdhT2:-OJhEZ_GnN5Wa0qCLsPV
Feedback ZIP: CZMixcUeW/Z4HF8ch5TKNDZXL5oIMvK8PLGyemFB+JEQoYGriTPKm+ESux3bNdKj+GSPj5EvUhATluTTRN4K3OegL5UFmbrMeEfUI5LlJlLRYs3dn9r1xwnrwJsEP8KEFslz5NweTU7/625YYLndEbOq03mqVCu6WN3TIU4OQliF6mSJH/1+Jf8R0oaymQxpzWpxXjqWUXpu8LKg7+do1jb0H0Bz25V7pqFSvNGpH/4dwkwceasi4Cod4MqKH3gB12eq+COhN6IqiarOkWPqmMtUSZX1XlbNdBkgW92HXcrx9prcA2OGMAaHX2vTTfsVJJPT6zaVztP6sg/hqou6oAMXSgKvzM5iW9IV2x+6zKo=
- Christian Scheuer @chrscheuer2025-02-22 11:52:42.685Z
Hi Loran,
Thanks for reporting this! Can you share a screenshot of the template config, and possibly some reproduction code, just to make sure we test this the right way?
Also, can you share how you're using that template somewhere else? Is that in a macro?Finally, out of curiosity - what's the use case for the callback function inside of a list?
Loran Keuning @Loran_Keuning
Hey Christian!
I explained the purpose here in this post: Modular way of adding keyboard modifiers to a template
there's no need to have code in the script to let this one crash.
Christian Scheuer @chrscheuer2025-02-23 13:20:39.967Z
Thank you, Loran! It looks like we should be able to reproduce this based on your info.
Just so I understand the use case - is this for using with a Stream Deck or iPad button?Loran Keuning @Loran_Keuning
Would not really matter right? The modifier could work for both a surface or deck button
Christian Scheuer @chrscheuer2025-02-24 10:51:57.287Z
Yes exactly, for both of those scenarios it should work, however, it would not (necessarily) work for keyboard shortcuts or other trigger types. Just wanted to be sure that you're aware of the limitations.
Loran Keuning @Loran_Keuning
Hey Christian,
Yeah i'm aware of this limitation. I think of this more of another (less cluttering) way to add keyboard modifiers variations to buttons or surfaces until meta commands become available.
I've demonstrated this functionality more in my newest version of my 'Hue: Advanced Light Control' package. (how do i put this package in the 'By Technolgy & Hardware->Philips Hue'
category by the way?)Christian Scheuer @chrscheuer2025-02-24 19:59:58.669Z
Nice! You should be able to edit the package tags under the Settings page of the package. I think the Settings button is in the package toolbar.
Loran Keuning @Loran_Keuning
ah yeah i've tried to do it there but the problem is that's it's not available in that list
- SIn reply toLoran_Keuning⬆:SoundFlow Bot @soundflowbot
This issue is now tracked internally by SoundFlow as SF-1580