No internet connection
  1. Home
  2. Support

Having a callback function in a List property when creating a template crashes that template when trying to use it somewhere else

By Loran Keuning @Loran_Keuning
    2025-02-22 10:40:11.810Z

    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

    1. Create a template
    2. Add a Custom type property with a Callback Property assigned to it
    3. create a Main 'List' property
    4. assign the custom property to the list
    5. 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=

    • 9 replies
    1. 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?

      1. Loran Keuning @Loran_Keuning
          2025-02-22 13:14:38.097Z

          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.

          1. 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?

            1. Loran Keuning @Loran_Keuning
                2025-02-23 20:34:06.398Z

                Would not really matter right? The modifier could work for both a surface or deck button

                1. 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.

                  1. Loran Keuning @Loran_Keuning
                      2025-02-24 13:11:18.322Z

                      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?)

                      1. 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.

                        1. Loran Keuning @Loran_Keuning
                            2025-02-24 21:55:04.493Z

                            ah yeah i've tried to do it there but the problem is that's it's not available in that list

              • S
                In reply toLoran_Keuning:
                SoundFlow Bot @soundflowbot
                  2025-02-22 11:52:51.486Z

                  This issue is now tracked internally by SoundFlow as SF-1580