# Handling on\_change() for the publish tree UI

**URL:** <https://community.shotgridsoftware.com/t/handling-on-change-for-the-publish-tree-ui/18620>\
**Category:** Uncategorized\
**Created:** [April 2, 2024, 8:37am UTC](https://community.shotgridsoftware.com/t/handling-on-change-for-the-publish-tree-ui/18620 "2024-04-02T08:37:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emarth](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@emarth](https://community.shotgridsoftware.com/u/emarth)\
**Post date:** [April 2, 2024, 8:37am UTC](https://community.shotgridsoftware.com/t/handling-on-change-for-the-publish-tree-ui/18620/1 "2024-04-02T08:37:38Z")

</div>

Hi everyone!  
I’m working on Blender integration and would like to have some of the items in the publish tree checked/unchecked depending on the other items.  
That means that when user unchecks one of them other one should get unchecked too.  
Normally I would connect to the event handler and update the tree on\_change() but I cant seem to find a way to do it in shotgrid.  
How would you approach this?

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 2, 2024, 9:01am UTC](https://community.shotgridsoftware.com/t/handling-on-change-for-the-publish-tree-ui/18620/2 "2024-04-02T09:01:26Z")

</div>

The publisher abstraction is slightly higher, so it only provides you the accept, validate, publish, and finalize methods. The collector provides you with the `process_current_session` method.  
Anything lower level, I think you’d have to override large parts of the publisher. Might as well fork it.  
[https://developers.shotgridsoftware.com/tk-multi-publish2/customizing.html#](https://developers.shotgridsoftware.com/tk-multi-publish2/customizing.html#)

---

<div class="post-metadata">

**Author:** ![emarth](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@emarth](https://community.shotgridsoftware.com/u/emarth)\
**Post date:** [April 2, 2024, 9:41am UTC](https://community.shotgridsoftware.com/t/handling-on-change-for-the-publish-tree-ui/18620/3 "2024-04-02T09:41:19Z")

</div>

Ok thanks, it’s a bit more work then I expected. I think I’m gonna stick to the workaround with putting flags in the item.properties for now.
