# \#python

**URL:** https://community.shotgridsoftware.com/tag/python/52.md

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

---

## [Execute duplicate commands in a new RV session launched via the py-exec command](https://community.shotgridsoftware.com/t/execute-duplicate-commands-in-a-new-rv-session-launched-via-the-py-exec-command/20494)

<div class="topic-metadata">

**Author:** [@Gisub](https://community.shotgridsoftware.com/u/Gisub)\
**Replies:** 0\
**Last updated:** [October 23, 2025, 1:12pm UTC](https://community.shotgridsoftware.com/t/execute-duplicate-commands-in-a-new-rv-session-launched-via-the-py-exec-command/20494 "2025-10-23T13:12:34Z")

</div>

Hi RV team, I’m currently working on making it available to load media via the -pyeval option in the RV command.(In the rvpush command, py-exec corresponds to this.) However, I noticed one thing during this process. W…

---

## [Transitioning from Script-based Authentication to User-based Authentication in PySide Standalone App](https://community.shotgridsoftware.com/t/transitioning-from-script-based-authentication-to-user-based-authentication-in-pyside-standalone-app/19179)

<div class="topic-metadata">

**Author:** [@Sean](https://community.shotgridsoftware.com/u/Sean)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 5:37am UTC](https://community.shotgridsoftware.com/t/transitioning-from-script-based-authentication-to-user-based-authentication-in-pyside-standalone-app/19179 "2024-08-26T05:37:18Z")

</div>

Hello everyone, I’m currently developing a standalone application using PySide, which is integrated with FPTR. At the moment, the app uses script-based authentication with a script key to log in. However, due to securit…

---

## [Open browser page to Task view directly](https://community.shotgridsoftware.com/t/open-browser-page-to-task-view-directly/19096)

<div class="topic-metadata">

**Author:** [@SamE](https://community.shotgridsoftware.com/u/SamE)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 7:05pm UTC](https://community.shotgridsoftware.com/t/open-browser-page-to-task-view-directly/19096 "2024-08-06T19:05:26Z")

</div>

Hello. I want to create an AMI that runs from a Version, and will open a new browser tab directly to the associated Shot, but with the Tasks tab active. It seems that the active tab is governed by an internal request and…

---

## [Workaround for setProgressiveSourceLoading not working](https://community.shotgridsoftware.com/t/workaround-for-setprogressivesourceloading-not-working/18868)

<div class="topic-metadata">

**Author:** [@patrickwolf](https://community.shotgridsoftware.com/u/patrickwolf)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 11:28am UTC](https://community.shotgridsoftware.com/t/workaround-for-setprogressivesourceloading-not-working/18868 "2024-06-11T11:28:56Z")

</div>

For anyone working with progressiveSourceLoading here a note of a workaround until its fixed officially. The manual says to enable async loading like this setProgressiveSourceLoading = true But this doesn’t work in RV…

---

## [FPTR Desktop 1.9.1 and Rocky 9.4](https://community.shotgridsoftware.com/t/fptr-desktop-1-9-1-and-rocky-9-4/18824)

<div class="topic-metadata">

**Author:** [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 9:10am UTC](https://community.shotgridsoftware.com/t/fptr-desktop-1-9-1-and-rocky-9-4/18824 "2024-06-04T09:10:56Z")

</div>

Hi everyone! I currently try to use FPTR Desktop 1.9.1 on Rocky 9.4 and I have trouble getting the desktop server to work. The application itself runs fine, but I can see in the logs that the desktop server is running i…

---

## [Flow Production Tracking - Jira Bridge "TypeError: Object of type Project is not JSON serializable"](https://community.shotgridsoftware.com/t/flow-production-tracking-jira-bridge-typeerror-object-of-type-project-is-not-json-serializable/18845)

<div class="topic-metadata">

**Author:** [@adam.rothstein](https://community.shotgridsoftware.com/u/adam.rothstein)\
**Replies:** 5\
**Last updated:** [May 31, 2024, 8:48am UTC](https://community.shotgridsoftware.com/t/flow-production-tracking-jira-bridge-typeerror-object-of-type-project-is-not-json-serializable/18845 "2024-05-31T08:48:59Z")

</div>

Hello, team! I’m attempting to get the Jira Bridge up and running, and I’m having this issue when I attempt to run the update\_shotgun\_users.py script. It’s telling me “Object of type Project is not JSON serializable” Se…

---

## [Pyshotgrid - a new object oriented way to write code for ShotGrid](https://community.shotgridsoftware.com/t/pyshotgrid-a-new-object-oriented-way-to-write-code-for-shotgrid/17856)

<div class="topic-metadata">

**Author:** [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Replies:** 3\
**Last updated:** [May 31, 2024, 12:16am UTC](https://community.shotgridsoftware.com/t/pyshotgrid-a-new-object-oriented-way-to-write-code-for-shotgrid/17856 "2024-05-31T00:16:22Z")

</div>

Hi everyone! Today I am proud to release v1.0.0 of a side project that I am working on for quite some time now. It’s called pyshotgrid and is an object oriented way to talk to ShotGrid with python: I am curious to se…

---

## [Steps to script SG (Flow) AMI to see local network files](https://community.shotgridsoftware.com/t/steps-to-script-sg-flow-ami-to-see-local-network-files/18627)

<div class="topic-metadata">

**Author:** [@unicorn](https://community.shotgridsoftware.com/u/unicorn)\
**Replies:** 3\
**Last updated:** [April 8, 2024, 7:15pm UTC](https://community.shotgridsoftware.com/t/steps-to-script-sg-flow-ami-to-see-local-network-files/18627 "2024-04-08T19:15:38Z")

</div>

Hi, What would be the steps to script an SG ami to do things with our local files? SG ami on Version page to select versions, on click to move files. for example: moving mov files from one location to another \\projec…

---

## [Importing Parts of FBX File through Loader (Unreal Engine)](https://community.shotgridsoftware.com/t/importing-parts-of-fbx-file-through-loader-unreal-engine/18368)

<div class="topic-metadata">

**Author:** [@sophiapreymaker](https://community.shotgridsoftware.com/u/sophiapreymaker)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 4:48pm UTC](https://community.shotgridsoftware.com/t/importing-parts-of-fbx-file-through-loader-unreal-engine/18368 "2024-01-30T16:48:45Z")

</div>

Hello all! I’m attempting to create custom actions for the Loader in Unreal Engine so artists have the option to import just the skeleton/animation/mesh/etc. from an FBX file, instead of the whole file. I have had some …

---

## [Bootstrap engine via python without the default site config](https://community.shotgridsoftware.com/t/bootstrap-engine-via-python-without-the-default-site-config/18240)

<div class="topic-metadata">

**Author:** [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 10:41am UTC](https://community.shotgridsoftware.com/t/bootstrap-engine-via-python-without-the-default-site-config/18240 "2023-12-14T10:41:57Z")

</div>

Hey everyone, I am currently working on running the shotgrid publisher on the farm. It involves starting the software, in this case maya, and bootstrapping the tk-maya engine with the right context. Currently I have t…

---

## [Nuke integrations - having trouble getting engine context](https://community.shotgridsoftware.com/t/nuke-integrations-having-trouble-getting-engine-context/18038)

<div class="topic-metadata">

**Author:** [@StarkRavenSimone](https://community.shotgridsoftware.com/u/StarkRavenSimone)\
**Replies:** 4\
**Last updated:** [October 17, 2023, 5:36pm UTC](https://community.shotgridsoftware.com/t/nuke-integrations-having-trouble-getting-engine-context/18038 "2023-10-17T17:36:32Z")

</div>

I’m not sure if this is even possible but I’m working on a menu.py script for SG-integerated Nuke. So far I’m able to tell that I can import sgtk and get the current engine but after that it seems to not work. If I ma…

---

## [Refresh the Shotgun Panel programmatically](https://community.shotgridsoftware.com/t/refresh-the-shotgun-panel-programmatically/4569)

<div class="topic-metadata">

**Author:** [@ababak](https://community.shotgridsoftware.com/u/ababak)\
**Replies:** 5\
**Last updated:** [July 19, 2023, 11:27pm UTC](https://community.shotgridsoftware.com/t/refresh-the-shotgun-panel-programmatically/4569 "2023-07-19T23:27:41Z")

</div>

Hi All, After changing the task status programmatically on publish, we need to refresh the Shotgun Panel in Maya to display the correct status. There is a drop-down menu item named “Refresh” which does the job. What is…

---

## [Is there any way to set default views to 'add' and export the resultant movie using rv commands](https://community.shotgridsoftware.com/t/is-there-any-way-to-set-default-views-to-add-and-export-the-resultant-movie-using-rv-commands/17578)

<div class="topic-metadata">

**Author:** [@iamkartiks](https://community.shotgridsoftware.com/u/iamkartiks)\
**Replies:** 7\
**Last updated:** [July 3, 2023, 2:09pm UTC](https://community.shotgridsoftware.com/t/is-there-any-way-to-set-default-views-to-add-and-export-the-resultant-movie-using-rv-commands/17578 "2023-07-03T14:09:17Z")

</div>

I am working on shotgrid RV player, where I am trying to import two different .mov files and overlapp them and then export the resultant .mov file. I am providing more context here below: Script which I am using is as …

---

## [YAML Configuration - Linked Fields](https://community.shotgridsoftware.com/t/yaml-configuration-linked-fields/17468)

<div class="topic-metadata">

**Author:** [@MrDarthVegas](https://community.shotgridsoftware.com/u/MrDarthVegas)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 8:16am UTC](https://community.shotgridsoftware.com/t/yaml-configuration-linked-fields/17468 "2023-06-13T08:16:03Z")

</div>

Hey guys, I am attempting to run some versions through an in house delivery tool created a while back (before I joined) and require some assistance in regards to linked fields. The way the tool works is when we have a …

---

## [Before app launch hook - Supply \*\*kwargs](https://community.shotgridsoftware.com/t/before-app-launch-hook-supply-kwargs/16630)

<div class="topic-metadata">

**Author:** [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Replies:** 8\
**Last updated:** [January 19, 2023, 9:14am UTC](https://community.shotgridsoftware.com/t/before-app-launch-hook-supply-kwargs/16630 "2023-01-19T09:14:08Z")

</div>

Hey everyone, I am using a custom hook\_before\_app\_launch for the tk-multi-launchapp to setup my environments. The execute function of the BeforeAppLaunch class has a \*\*kwars argument in its function description. class…

---

## [Erro with API Login: Error validating personal access token: invalid](https://community.shotgridsoftware.com/t/erro-with-api-login-error-validating-personal-access-token-invalid/16343)

<div class="topic-metadata">

**Author:** [@MarioHernandez](https://community.shotgridsoftware.com/u/MarioHernandez)\
**Replies:** 3\
**Last updated:** [November 24, 2022, 5:48pm UTC](https://community.shotgridsoftware.com/t/erro-with-api-login-error-validating-personal-access-token-invalid/16343 "2022-11-24T17:48:41Z")

</div>

Hi!! Today I’m getting this error: shotgun\_api3.shotgun.AuthenticationFault: Forbidden - Error validating personal access token: invalid I know is not beacouse of the code I’m running beaocuse is a code that I run dai…

---

## [Check if bootstrap and loadup is finished?](https://community.shotgridsoftware.com/t/check-if-bootstrap-and-loadup-is-finished/16148)

<div class="topic-metadata">

**Author:** [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Replies:** 1\
**Last updated:** [October 13, 2022, 3:04pm UTC](https://community.shotgridsoftware.com/t/check-if-bootstrap-and-loadup-is-finished/16148 "2022-10-13T15:04:42Z")

</div>

Hey I currently have the problem, using the tk-blender toolkit, that when I try to import the sgtk module in a Blender Addon it just crashes. And I assume it’s because sgtk is not properly loaded yet or the bootstrap pro…

---

## [Query items which contain at least one item from list of tags](https://community.shotgridsoftware.com/t/query-items-which-contain-at-least-one-item-from-list-of-tags/15489)

<div class="topic-metadata">

**Author:** [@tweekazoid](https://community.shotgridsoftware.com/u/tweekazoid)\
**Replies:** 3\
**Last updated:** [June 13, 2022, 12:51pm UTC](https://community.shotgridsoftware.com/t/query-items-which-contain-at-least-one-item-from-list-of-tags/15489 "2022-06-13T12:51:12Z")

</div>

Is it possible to query items using filters which test against partial similarity? (in python) for example some entities ‘Objects’ have field tags object\_1 -tags: \['square', 'metal'\] object\_2 -tags: \['circle' ,'rubber…

---

## [How to get the current Users department via python?](https://community.shotgridsoftware.com/t/how-to-get-the-current-users-department-via-python/15487)

<div class="topic-metadata">

**Author:** [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Replies:** 0\
**Last updated:** [June 10, 2022, 8:54am UTC](https://community.shotgridsoftware.com/t/how-to-get-the-current-users-department-via-python/15487 "2022-06-10T08:54:38Z")

</div>

Hey friends, does anyone know how to get the department of the current User via sgtk or tank ? I would like to to have some logic that env variables only get set if a specific department is starting software.

---

## [Shotgrid Desktop Python3 but Console Python 2?](https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348)

<div class="topic-metadata">

**Author:** [@paulgolter](https://community.shotgridsoftware.com/u/paulgolter)\
**Replies:** 1\
**Last updated:** [May 17, 2022, 12:10pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-python3-but-console-python-2/15348 "2022-05-17T12:10:41Z")

</div>

Hey friends, I am on Linux Fedora and want to be able to write Python3 code in the Shotgrid config. The Desktop App seems to be showing me that it is running Python3 as you can see here in the screenshot. But as soo…

---

## [Pip install sgtk breaks ToolkitManager](https://community.shotgridsoftware.com/t/pip-install-sgtk-breaks-toolkitmanager/9695)

<div class="topic-metadata">

**Author:** [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Replies:** 15\
**Last updated:** [April 13, 2022, 8:37am UTC](https://community.shotgridsoftware.com/t/pip-install-sgtk-breaks-toolkitmanager/9695 "2022-04-13T08:37:48Z")

</div>

Hello everyone! I encountered an issue when I install tk-core via pip, that I cannot bootstrap an SGTK instance via the toolkit manager. I am running this code: import tank sa = tank.authentication.ShotgunAuthenticat…

---

## [Event daemon trigger only once - upon Version Creation?](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810)

<div class="topic-metadata">

**Author:** [@James.Choi](https://community.shotgridsoftware.com/u/James.Choi)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 2:57am UTC](https://community.shotgridsoftware.com/t/event-daemon-trigger-only-once-upon-version-creation/14810 "2022-03-01T02:57:03Z")

</div>

Hi. I’m trying to make an Event Daemon so that upon a Version creation, it changes the ‘Status’ field’s value to ‘reference’, which I was able to do using ‘sg.update(…)’. BUT, I want this change to to the ‘Status’ fiel…

---

## [Launch publisher from python](https://community.shotgridsoftware.com/t/launch-publisher-from-python/13616)

<div class="topic-metadata">

**Author:** [@Lukas](https://community.shotgridsoftware.com/u/Lukas)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 7:46pm UTC](https://community.shotgridsoftware.com/t/launch-publisher-from-python/13616 "2022-02-16T19:46:43Z")

</div>

Hello guys, I am just wondering if is possible to run SG publisher app from python without app name (where app name is not in SG menu in maya) with a specific ‘set’ from tk-multi-publish.yml \> settings.tk-multi-publish…

---

## [Shotgun Desktop with Python 3 support is OUT!](https://community.shotgridsoftware.com/t/shotgun-desktop-with-python-3-support-is-out/10579)

<div class="topic-metadata">

**Author:** [@jfboismenu](https://community.shotgridsoftware.com/u/jfboismenu)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 6:06pm UTC](https://community.shotgridsoftware.com/t/shotgun-desktop-with-python-3-support-is-out/10579 "2022-01-26T18:06:18Z")

</div>

Hi everyone, Shotgun Desktop version v1.6.1, which supports both Python 2 and 3 and Qt5 (via PySide2) is now available! Please visit our documentation to learn more about how to leverage Python 3 with Shotgun Desktop. P…

---

## [Updating "WIN Path to Frames" value when "Path to Frames" is filled for an entity](https://community.shotgridsoftware.com/t/updating-win-path-to-frames-value-when-path-to-frames-is-filled-for-an-entity/14322)

<div class="topic-metadata">

**Author:** [@James.Choi](https://community.shotgridsoftware.com/u/James.Choi)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 10:20pm UTC](https://community.shotgridsoftware.com/t/updating-win-path-to-frames-value-when-path-to-frames-is-filled-for-an-entity/14322 "2021-12-23T22:20:08Z")

</div>

Hello. I am new to writing a plugin for Shotgun and I’m trying to write a plugin in Python so that when the “Path to Frames” value is filled in with the Linux path for an entity, the “WIN Path to Frames” value is automa…

---

## [Configure a project to use Python3](https://community.shotgridsoftware.com/t/configure-a-project-to-use-python3/13681)

<div class="topic-metadata">

**Author:** [@yerhu](https://community.shotgridsoftware.com/u/yerhu)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 4:44pm UTC](https://community.shotgridsoftware.com/t/configure-a-project-to-use-python3/13681 "2021-10-07T16:44:54Z")

</div>

Hi guys, I was wondering what are the steps to configure a project to use Python3. I’ve set the SHOTGUN\_PYTHON\_VERSION environment variable to 3 and was able to launch Shotgun Desktop in Python3 mode. I have also re-set…

---

## [PyInstaller and shotgun\_api3 now working](https://community.shotgridsoftware.com/t/pyinstaller-and-shotgun-api3-now-working/13320)

<div class="topic-metadata">

**Author:** [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 6:02am UTC](https://community.shotgridsoftware.com/t/pyinstaller-and-shotgun-api3-now-working/13320 "2021-08-27T06:02:46Z")

</div>

Hi everyone! Just wanted to let everyone know that PyInstaller now works out of the box with the shotgun\_api3. I contributed a custom hook to the pyinstaller community hooks ( pyinstaller-hooks-contrib), which automatic…

---

## [Python API 3.3.1 is out](https://community.shotgridsoftware.com/t/python-api-3-3-1-is-out/13059)

<div class="topic-metadata">

**Author:** [@jfboismenu](https://community.shotgridsoftware.com/u/jfboismenu)\
**Replies:** 9\
**Last updated:** [August 9, 2021, 9:47am UTC](https://community.shotgridsoftware.com/t/python-api-3-3-1-is-out/13059 "2021-08-09T09:47:08Z")

</div>

Hi! We released a new version of the Python API, v3.3.1. Here are the release notes. Implements retries with incremental backoff on 502 errors. As always, feel free to reach out to our support team if you have any qu…

---

## [Getting metadata from newly added sources through python](https://community.shotgridsoftware.com/t/getting-metadata-from-newly-added-sources-through-python/12577)

<div class="topic-metadata">

**Author:** [@Will](https://community.shotgridsoftware.com/u/Will)\
**Replies:** 3\
**Last updated:** [June 11, 2021, 3:53pm UTC](https://community.shotgridsoftware.com/t/getting-metadata-from-newly-added-sources-through-python/12577 "2021-06-11T15:53:29Z")

</div>

Using python I am attempting to access the start frame of a piece of media immediately after adding it to a session with a piece of code like this: file\_source = rvc.addSourceVerbose(sources) source\_start = rvc.sourceMe…

---

## [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…

[Next page](https://community.shotgridsoftware.com/tag/python/52.md?match_all_tags=true&page=1&tags%5B%5D=python)
