I haven’t used this in the ‘standard’ preset browser template as it doesn’t have the section argument for the script module’s load callback. I only picked up this error of the name not showing when connecting to custom sections in the script module. For standard zone / layer / fx sections it seemed to work fine.
As far as the custom preset browser template is concerned, you can add your own script in the root of the template in edit mode, as with any template. That is where the Hot Brass layout comes in. Those same default template parameter names will work here.
Only difference is that the parameter you use to accept data from the SubPresetSelectedPath parameter needs a callback adjustment. Use the match pattern I posted.
yourPresetNameParamInternal = yourPresetPathParam:match('^.+[\\/](.+)%..+$')
yourPresetNameParamExternal = yourPresetNameParamInternal
In the text box you can actually use yourPresetNameParamInternal instead of SubPresetName