Timeline for UIList list_index. How to determine whether the index was changed through the UI or programmatically?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 13 at 10:22 | vote | accept | Vadim Tss | ||
Aug 12 at 18:10 | answer | added | X Y | timeline score: 0 | |
Aug 12 at 17:44 | comment | added | Vadim Tss | @XY I have added a very shortened addon code | |
Aug 12 at 17:43 | history | edited | Vadim Tss | CC BY-SA 4.0 |
added 4150 characters in body
|
Aug 12 at 16:36 | comment | added | X Y |
@VadimTss Can you provide a simplest example of a ready-to-run script ..def update(..): ..sleep(2).. I might have an idea.
|
|
Aug 12 at 13:56 | comment | added | Jakemoyo | There might be a legit way to tell the difference built into the API. Not sure. but that was my first idea. | |
Aug 12 at 13:41 | comment | added | Vadim Tss | @Jakemoyo I was also thinking about this method. I was hoping there was some way to detect this automatically. Thank you. | |
Aug 12 at 13:29 | comment | added | Jakemoyo |
You could maybe create a second scene property, like a BoolProperty like manual_update and then set that to True/False in whatever update function you run when you're making the change programmatically. Then before you run the computationally expensive code you check if that value in the scene is T/F before continuing.
|
|
Aug 12 at 12:56 | history | asked | Vadim Tss | CC BY-SA 4.0 |