This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Rohan K
Posted Aug 14 - Read on Facebook

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.)

5 Comments

Rohan K

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.

Jordan Robert Dobson

You would have to set this up yourself by extending layer. I don't believe that layer.custom: gets fired during changes.

Rohan K

but i am not looking to manipulate a layer, i want to track a variable

Jordan Robert Dobson

Same difference.

Jordan Robert Dobson

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!

Read the entire post on Facebook