Hi Sam
Here are some methods on the PublishItem
that I think will help you achieve what you are after.
-
Make sure the plugin running in the parent item store’s it’s result to the properties of the item so that you can retrieve the value in your downstream publish plugin - https://developer.shotgunsoftware.com/tk-multi-publish2/api.html#tk_multi_publish2.api.PublishItem.properties
-
This three method should help you when navigating the item hierarchy. The
parent
property is the one that will most likely be needed, but I thought it was worth mentioning the other two.
https://developer.shotgunsoftware.com/tk-multi-publish2/api.html#tk_multi_publish2.api.PublishItem.children
Does that help?
Thanks
Phil