The layer mix TOP is a little bit fiddly to use if you want to dynamically add and remove layers via script. You can add or remove layers via the + - parameters but if you plug in layers and then remove them those layers stay there as empty layers. There’s no real way of knowing how many layers there are etc without manually checking all the input connectors.
It’d be much more convenient if it worked like the composite TOP where you could just feed all the inputs into a TOPs parameter or even just having some extra methods in it’s class like:
- GetLayerOPs
- GetNumberofInputs
Investigating this further I see there’s the sequence class…I’m not sure this is the friendliest UX I’ve ever seen.