I have made a script that does the following:
1. I create an art object(s) and assign it/them a value that is stored in an array.
2. The script creates a sub-layer to which the object is passed and given a unique name.
3. The array is saved to a file with JSON.
4. The script should then be able to load the arrayfile and match the objects with the values in the array allowing me to keep the values I entered earlier.
It all works kind of like a puzzle, certain objects only fit with other object if their respective values are the same.
This works to some extent but every now and then there is an error message about an isValid check. How does that work?
The thing is that there is quite a few objects that I have created and it would be a very tedious and counterproductive way to have to enter all those values every time.