Hello, I’m afraid I’m not very sure of the specifics, but I noticed that somehow, a layer’s tempData is lost when there are more than a few glyphs in the edit view. If I use “Handgloves”, the tempData stays, but when I have “The quick brown fox jumps over the lazy dog.”, the tempData is lost with every redraw (when I zoom in and out, move the view, etc.). Is this intentional? I need the tempData for a reporter plugin to reuce lag, it works with a few characters in edit view, but not with many. Thanks for any information on this!
I cannot reproduce this. Can you find the glyph count threshold from which the tempData is no longer maintained for you?
I have the suspicion that it has to do with that glyphs you have and how another plugin is influencing the temp data. What happens if you put in “HandglovesHandglovesHandglovesHandgloves”?
Indeed, typing HandglovesHandgloves etc doesn’t result in loss of tempData. Odd. I will try and test a bit more which glyph it is and why. I might not be quite aware of how layer.tempData works, I used it like this: layer.tempData["myPlugin"] = my_data
and then always queried that key.
Alright, it was an oversight in my code. I was not writing tempData for empty glyphs, but still querying empty glyphs (like /space) for whether they had tempData (which, of course, they didn’t). All is well. Thanks!