# Unique asset\_work/asset\_publish paths from templates.yml based on Pipeline Step?

**URL:** <https://community.shotgridsoftware.com/t/unique-asset-work-asset-publish-paths-from-templates-yml-based-on-pipeline-step/8084>\
**Category:** Pipeline Integrations\
**Created:** [April 8, 2020, 6:21pm UTC](https://community.shotgridsoftware.com/t/unique-asset-work-asset-publish-paths-from-templates-yml-based-on-pipeline-step/8084 "2020-04-08T18:21:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![philip.scadding](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/philip.scadding/32/30_2.png) [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Post date:** [April 16, 2020, 9:26am UTC](https://community.shotgridsoftware.com/t/unique-asset-work-asset-publish-paths-from-templates-yml-based-on-pipeline-step/8084/3 "2020-04-16T09:26:44Z")

</div>

That sounds like the right way to go!

You could potentially also use the [template\_hook](https://github.com/shotgunsoftware/tk-core/blob/v0.19.5/hooks/example_template_hook.py) to dynamically set the template to use based on the context.  
Here is an example on how to use that:

> [@Conditional task filters based on user](https://community.shotgridsoftware.com/t/conditional-task-filters-based-on-user/366/5):
>
> Hi, Pierre-Luc I think there might be a way to do this. You could use the template hook to dynamically resolve the my\_task\_filters setting. This hook can be used to dynamically set a value in the env settings, however, it should be noted that it only evaluates when the environment is loaded and no every time the app is opened. So it should be fine for this sort of logic as the user won’t change during the session. To set this up you would copy the example\_template\_hook.py over to your confi…

---

_[View the full topic](https://community.shotgridsoftware.com/t/unique-asset-work-asset-publish-paths-from-templates-yml-based-on-pipeline-step/8084)._
