InsertInstance function doesn't seem to work on Row1[2] and beyond but it works for Row1[0] and Row1[1].
Basically insertInstance generates errors whenever there's more than 1 row instances premade inside Designer.
Error: Index value is out of bounds
Picture below is of object hierarchy.
Each "+" button calls the addRow function inside the script object
ButtonFunction.addRow(this);
Script Object
function addRow(object1)
{
var currentObj = object1;
if (currentObj.parent.parent.instanceManager.count < 100)
{
var rowNum = currentObj.parent.parent.index;
currentObj.parent.parent.instanceManager.insertInstance(rowNum);
}
}
How can I fix this?