[ShaderFX + Maya] Custom number of texture inputs

Hi,

I’m building a shader in ShaderFX that needs to allow a custom number of image files to be specified for combining in the shader so the artist can animate a blend between however many they need.

My problem is that I don’t see a way to allow an undefined number to be added. I could play it safe and add 20 inputs just in case but seems really tacky. Is there no better way?