The problem is, when trying to check property["maxValue"] for position, AE throws an error: "Property has no maximum value.". This breaks my code. If I check the model viewer, maxValue is null. If i check the console while the error is thrown, the result is null. If i try it in the console while the error is not thrown, it throws the error.
Is there any chance i can stop AE from throwing this error? I tried putting the value attribution inside a try catch statement but it still throws the error while in the JSON2 library.
Works if the only code in my script is the try catch phrase.
But if i try it inside the JSON2 library, it throws an error just before try. I don't know why and ran out of ideas to test.
The error appears at rows 244(var value = holder[key];) for values holder = scale, key = "maxValue".
I replaced that row with this and still got the error before the try/catch phrase:
value = holder[key];
value = null;