Standalone Publisher and Item Context


I’ve overridden the publisher and collector hooks. I am trying to set an items context based on the file name. If I use the following code in everything works fine

item.context = self.parent.sgtk.context_from_entity_dictionary(task)

if I use the similar code in the collector hook it doesn’t add the item to the list. A debug shows it is getting a valid task, and returning a context.

file_item.context = self.parent.sgtk.context_from_entity_dictionary(task)

What have I missed?

All the best



Hi @pata

Maybe this post might help? There are a few ideas there and it sounds like you are hitting a similar issue.

Let us know if it doesn’t though and we can help you dig in further.


1 Like