sorry if this is a repeat query, but i tried searching for it...is there an event that fires when the value of a variable changes? the current change events supports only layer properties (width, height, x, y etc.)
sorry to open an old thread, but i ran into this problem again, and this time i can't find i find a way around it like i probably did last time 🙄Basically, I am storing a value in the custom property of a layer and I want to observe it for changes. It would be even better if I could create a custom property, and fire events in get and set, but I am unable to do tabGroup.define "currentTab". tabGroup is a variable that points to the actual layer.
You would have to set this up yourself by extending layer. I don't believe that layer.custom: gets fired during changes.
but i am not looking to manipulate a layer, i want to track a variable
It's an event based off of getters and setters. I'm not sure if there is an observe for typical variables. I bet you could make one!