How to run code in python SDK mode when script component gets disabled

Hello,

Specifically I want to manipulate the sticky when the component gets locked. I’m not sure if there is an event/override that allows this. I tried OnAttributesChanged() and OnObjectChanged() overrides, but couldn’t get either to work. Maybe I’m implementing wrong or maybe they are not the right methods…

Thanks for any tips!

No code will run inside a locked component. Something else, e.g. a different unlocked component, will have to monitor the state of the others, the locking of which should trigger manipulation of the sticky.

Duplicate thread: