I'm making a script which uses "getSprayCanDivisionSlot(int index)" to find the X and Y coordinates of a given color within the paint set. However, that function gives a console error if the given index is invalid, and I can't find an equivalent function to get the number of divisions directly.
Does anyone know if such a function exists, or will I just have to come up with some hacky way of detecting this problem?