ZBrushCentral

Loops and IButtons

Why does this script only create one button?

[ISubPalette,"ZPlugin:MyButtons"]

[Loop, 4,
        [IButton,[StrMerge,"ZPlugin:MyButtons:button",loopCount],[StrMerge,"Button ",loopCount],
        ,,160 /*width*/,,,/*height*/]
,loopCount]

shouldn’t it make four?

No idea why that doesn’t work, though frankly, even if it did it would be of limited usefulness.

I believe the buttons need to have unique names?

EDIT: Never mind. I didn’t see the StrMerge with the loopcount!