Hi
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 publish_file.py 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
Pat