Hi abject39.
Try this:
zone=this.parent:getZone()
filterShapes={
{name="LP24", index=0},
{name="HP24", index=10},
{name="BP24", index=5},
{name="BR24", index=15},
}
function getFilterShapeNames()
filterShapeNames={}
for i=1,#filterShapes do
filterShapeNames[i]=filterShapes[i].name
end
end
getFilterShapeNames()
function filterShapeChanged()
zone:setParameter("Filter.ShapeA",filterShapes[FilterShape].index)
end
defineParameter("FilterShape",nil,1,filterShapeNames,filterShapeChanged)
The only thing you need to modify is the “filterShapes” array. Add more lines or reorder them.