# \#hooks

**URL:** https://community.shotgridsoftware.com/tag/hooks/32.md

[Latest](https://community.shotgridsoftware.com/latest.md) · [Categories](https://community.shotgridsoftware.com/categories.md) · [Tags](https://community.shotgridsoftware.com/tags.md)

---

## [Custom IODescriptor Types for tk-core](https://community.shotgridsoftware.com/t/custom-iodescriptor-types-for-tk-core/8806)

<div class="topic-metadata">

**Author:** [@Ahuge](https://community.shotgridsoftware.com/u/Ahuge)\
**Replies:** 4\
**Last updated:** [August 12, 2026, 3:04am UTC](https://community.shotgridsoftware.com/t/custom-iodescriptor-types-for-tk-core/8806 "2026-08-12T03:04:43Z")

</div>

Hello, I would like to have the ability to define custom IODescriptor types via a hook or some other method. I have started some work on this here: https://github.com/shotgunsoftware/tk-core/pull/768 However @jfboisme…

---

## [How can I load a Toolkit framework in my hook?](https://community.shotgridsoftware.com/t/how-can-i-load-a-toolkit-framework-in-my-hook/115)

<div class="topic-metadata">

**Author:** [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Replies:** 3\
**Last updated:** [August 22, 2023, 10:55pm UTC](https://community.shotgridsoftware.com/t/how-can-i-load-a-toolkit-framework-in-my-hook/115 "2023-08-22T22:55:00Z")

</div>

Toolkit frameworks can be useful for writing code that can be then reused in a number of different Apps or Engines. Normally if you are writing a custom App or Engine, you would import the framework using sgtk.platform.…

---

## [Sharing published files via a cloud storage solution](https://community.shotgridsoftware.com/t/sharing-published-files-via-a-cloud-storage-solution/8017)

<div class="topic-metadata">

**Author:** [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Replies:** 20\
**Last updated:** [April 1, 2023, 6:03pm UTC](https://community.shotgridsoftware.com/t/sharing-published-files-via-a-cloud-storage-solution/8017 "2023-04-01T18:03:07Z")

</div>

\[This post is part of a series of articles about working from home in Shotgun.\] This topic aims to tackle how you could upload and download published files so that they can be shared with your remote based team. This p…

---

## [Publisher2 bug in post\_validate hook](https://community.shotgridsoftware.com/t/publisher2-bug-in-post-validate-hook/16035)

<div class="topic-metadata">

**Author:** [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Replies:** 2\
**Last updated:** [September 27, 2022, 8:01am UTC](https://community.shotgridsoftware.com/t/publisher2-bug-in-post-validate-hook/16035 "2022-09-27T08:01:02Z")

</div>

Hi ShotGrid team! I found a bug in the Publisher2. When you are using the post\_validate method in the post\_phase hook, errors in the method are not reflected in the GUI. They show up in the logs but the GUI shows that t…

---

## [Custom App hooks failing silently in Maya](https://community.shotgridsoftware.com/t/custom-app-hooks-failing-silently-in-maya/13997)

<div class="topic-metadata">

**Author:** [@Justin\_Pedersen](https://community.shotgridsoftware.com/u/Justin_Pedersen)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 8:06am UTC](https://community.shotgridsoftware.com/t/custom-app-hooks-failing-silently-in-maya/13997 "2021-11-16T08:06:32Z")

</div>

Hi all! I’ve created a custom app using the template starter app . I’ve implemented some hooks for it and then taken them over in our config. My current issue as the title states is that when there’s an error in the ho…

---

## [Custom hook : problems defining path of hook](https://community.shotgridsoftware.com/t/custom-hook-problems-defining-path-of-hook/13165)

<div class="topic-metadata">

**Author:** [@donat](https://community.shotgridsoftware.com/u/donat)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 3:27am UTC](https://community.shotgridsoftware.com/t/custom-hook-problems-defining-path-of-hook/13165 "2021-08-09T03:27:07Z")

</div>

Hi I’m writing a custom hook that will be used in the tk-multi-workfiles2 app. The tk-multi-workfiles2 app has a setting : “saveas\_default\_name” which I want to attach my hook to. I want the default name to be the name…

---

## [Set environment = disk location app using hook before\_app\_launch](https://community.shotgridsoftware.com/t/set-environment-disk-location-app-using-hook-before-app-launch/12604)

<div class="topic-metadata">

**Author:** [@KuborArt](https://community.shotgridsoftware.com/u/KuborArt)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 2:14pm UTC](https://community.shotgridsoftware.com/t/set-environment-disk-location-app-using-hook-before-app-launch/12604 "2021-06-08T14:14:47Z")

</div>

Hi! I need add path to environment variable HOUDINI\_PATH = tk-houdini-my\_app.disk\_location/houdini. I have custom \*.idx presets which I want keep in my app, for this I need HOUDINI\_PATH to presets location. How I can g…

---

## [Configuring scene settings on open](https://community.shotgridsoftware.com/t/configuring-scene-settings-on-open/49)

<div class="topic-metadata">

**Author:** [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Replies:** 4\
**Last updated:** [March 25, 2021, 6:09am UTC](https://community.shotgridsoftware.com/t/configuring-scene-settings-on-open/49 "2021-03-25T06:09:08Z")

</div>

Being able to set up a scene automatically with the right settings within your creative software can speed up your artists and help reduce the margin of error. For example, you may wish to ensure that the frame rate or …

---

## [Folder creation - How to ignore case sensitivity?](https://community.shotgridsoftware.com/t/folder-creation-how-to-ignore-case-sensitivity/7349)

<div class="topic-metadata">

**Author:** [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 5:29pm UTC](https://community.shotgridsoftware.com/t/folder-creation-how-to-ignore-case-sensitivity/7349 "2020-12-08T17:29:31Z")

</div>

Is there a way to ignore case when folder creation runs? Sometimes our shotnames get mistakenly made into lowercase when they where upper case or the other way around. Currently this breaks folder creation as the regis…

---

## [How to open the latest file automatically when launching software from a Task](https://community.shotgridsoftware.com/t/how-to-open-the-latest-file-automatically-when-launching-software-from-a-task/6421)

<div class="topic-metadata">

**Author:** [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 12:05pm UTC](https://community.shotgridsoftware.com/t/how-to-open-the-latest-file-automatically-when-launching-software-from-a-task/6421 "2020-01-24T12:05:20Z")

</div>

This question was asked over in the #shotguncreate room, and I thought I was worth sharing here too. When launching software like Nuke from a Task either in Shotgun Create or via the browser integration, you may want it…

---

## [Configuring env vars on a per-project basis, rather than per-app basis](https://community.shotgridsoftware.com/t/configuring-env-vars-on-a-per-project-basis-rather-than-per-app-basis/781)

<div class="topic-metadata">

**Author:** [@ruyman](https://community.shotgridsoftware.com/u/ruyman)\
**Replies:** 9\
**Last updated:** [October 27, 2020, 12:22am UTC](https://community.shotgridsoftware.com/t/configuring-env-vars-on-a-per-project-basis-rather-than-per-app-basis/781 "2020-10-27T00:22:05Z")

</div>

I have some env vars I would like to set up by project (and not by app) when launching apps from Shotgun Desktop. I’m able to set up my env vars via the before\_launch\_app hook of the tk-multi-launchapp (as detailed here)…

---

## [Loading a custom framework when Shotgun Desktop loads a project?](https://community.shotgridsoftware.com/t/loading-a-custom-framework-when-shotgun-desktop-loads-a-project/8911)

<div class="topic-metadata">

**Author:** [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Replies:** 2\
**Last updated:** [June 9, 2020, 2:51pm UTC](https://community.shotgridsoftware.com/t/loading-a-custom-framework-when-shotgun-desktop-loads-a-project/8911 "2020-06-09T14:51:47Z")

</div>

I’ve got a custom framework which is a python library of convenience functions for our studio. Ideally I would love to load this (add the library to the sys.path) when shotgun desktop loads up a project so the library f…

---

## [Tk-multi-publish2 - hooks - upload\_version.py](https://community.shotgridsoftware.com/t/tk-multi-publish2-hooks-upload-version-py/8591)

<div class="topic-metadata">

**Author:** [@sbasu](https://community.shotgridsoftware.com/u/sbasu)\
**Replies:** 4\
**Last updated:** [May 22, 2020, 7:37am UTC](https://community.shotgridsoftware.com/t/tk-multi-publish2-hooks-upload-version-py/8591 "2020-05-22T07:37:32Z")

</div>

Hi All, I’m currently working on customizing publish workflows for review media. Using these guides for the same: https://community.shotgridsoftware.com/t/publish2-custom-plugin-ui-example/2981 https://www.youtube.com…

---

## [Remote storage hook scripts and library dependencies](https://community.shotgridsoftware.com/t/remote-storage-hook-scripts-and-library-dependencies/8703)

<div class="topic-metadata">

**Author:** [@reikje](https://community.shotgridsoftware.com/u/reikje)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 8:40am UTC](https://community.shotgridsoftware.com/t/remote-storage-hook-scripts-and-library-dependencies/8703 "2020-05-18T08:40:41Z")

</div>

Hi, I am new to Shotgun. Was asked to write some remote storage integrations. I checked out this example: https://github.com/shotgunsoftware/tk-framework-remotestorageexample/blob/v1.0.0/examples/example\_local\_provider.p…

---

## [How do I import custom modules into a hook?](https://community.shotgridsoftware.com/t/how-do-i-import-custom-modules-into-a-hook/7174)

<div class="topic-metadata">

**Author:** [@kramester](https://community.shotgridsoftware.com/u/kramester)\
**Replies:** 2\
**Last updated:** [February 14, 2020, 9:01am UTC](https://community.shotgridsoftware.com/t/how-do-i-import-custom-modules-into-a-hook/7174 "2020-02-14T09:01:28Z")

</div>

My before\_app\_launch.py hook was getting a bit large so I was wanting to put some of my code into a separate py file and import it but I cant seem to import a module that is in the same folder as the hook. Here is my …

---

## [Open in... Latest work file version](https://community.shotgridsoftware.com/t/open-in-latest-work-file-version/5601)

<div class="topic-metadata">

**Author:** [@macbeth](https://community.shotgridsoftware.com/u/macbeth)\
**Replies:** 5\
**Last updated:** [January 21, 2020, 8:55pm UTC](https://community.shotgridsoftware.com/t/open-in-latest-work-file-version/5601 "2020-01-21T20:55:34Z")

</div>

Can I configure Shotgun Create to open the latest working file of the task being reviewed. I.e. click open in nuke and it opens the latest version for that task program chosen.

---

## [Import Shotgun Toolkit Frameworks into tk-shotgun-ami hooks](https://community.shotgridsoftware.com/t/import-shotgun-toolkit-frameworks-into-tk-shotgun-ami-hooks/4631)

<div class="topic-metadata">

**Author:** [@Devottam\_Dutta](https://community.shotgridsoftware.com/u/Devottam_Dutta)\
**Replies:** 1\
**Last updated:** [January 17, 2020, 10:18am UTC](https://community.shotgridsoftware.com/t/import-shotgun-toolkit-frameworks-into-tk-shotgun-ami-hooks/4631 "2020-01-17T10:18:17Z")

</div>

We have developed custom framework for our delivery process, now we have different modules inside the custom framework which we want to load or import inside the tk-shotgun-ami hooks. Does anyone have any idea on this?

---

## [Trigger another app when creating a file with tk-multi-workfiles](https://community.shotgridsoftware.com/t/trigger-another-app-when-creating-a-file-with-tk-multi-workfiles/4229)

<div class="topic-metadata">

**Author:** [@Kevin\_Lmr](https://community.shotgridsoftware.com/u/Kevin_Lmr)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 3:11pm UTC](https://community.shotgridsoftware.com/t/trigger-another-app-when-creating-a-file-with-tk-multi-workfiles/4229 "2019-12-12T15:11:41Z")

</div>

Hello Shotgun Community! We are using tk-multi-setframerange. We would like to automatically trigger it when creating a new Maya file for exemple. From what I’ve seen so far tk-multi-workfiles2 has the following hook s…

---

## [Custom hook for app tk-multi-setframerange](https://community.shotgridsoftware.com/t/custom-hook-for-app-tk-multi-setframerange/4139)

<div class="topic-metadata">

**Author:** [@Kevin\_Lmr](https://community.shotgridsoftware.com/u/Kevin_Lmr)\
**Replies:** 8\
**Last updated:** [December 10, 2019, 10:05am UTC](https://community.shotgridsoftware.com/t/custom-hook-for-app-tk-multi-setframerange/4139 "2019-12-10T10:05:18Z")

</div>

Hi, I want to start using the app tk-multi-framerange but I would like it to also set the framerate. For all other apps, I of course edit this through hooks. But in this specific app, even if I see a hooks folder, ‘in…

---

## [Hook inherit from base class and multiple location](https://community.shotgridsoftware.com/t/hook-inherit-from-base-class-and-multiple-location/797)

<div class="topic-metadata">

**Author:** [@pritish.dogra](https://community.shotgridsoftware.com/u/pritish.dogra)\
**Replies:** 3\
**Last updated:** [September 3, 2019, 4:57pm UTC](https://community.shotgridsoftware.com/t/hook-inherit-from-base-class-and-multiple-location/797 "2019-09-03T16:57:20Z")

</div>

I had asked the following question in support forum but I was advised to post here for general knowledge For the loader/shotgun panel actions and collections hooks, we have these spread across many locations. The path …

---

## [How can I define the permissions for folders that Toolkit creates?](https://community.shotgridsoftware.com/t/how-can-i-define-the-permissions-for-folders-that-toolkit-creates/193)

<div class="topic-metadata">

**Author:** [@philip.scadding](https://community.shotgridsoftware.com/u/philip.scadding)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 1:53pm UTC](https://community.shotgridsoftware.com/t/how-can-i-define-the-permissions-for-folders-that-toolkit-creates/193 "2019-07-23T13:53:25Z")

</div>

The creation process for folders that get generated by the Toolkit schema, can be customized in the process\_folder\_creation.py core hook: To modify the hook you would copy the hook from the .../install/core/hooks fo…
