I finally found a way to get the spline point numbers and update the components number - I have to store all the components into an array and clear the array each spline points number change.
I finally found a way to get the spline point numbers and update the components number - I have to store all the components into an array and clear the array each spline points number change.