Hello there!
I was wondering, what’s the best way to access sgtk in a deadline job on the farm?
For example, in a python script I’d like to create a context based on a maya scene file, and get the Step from that context. Is this possible?
You will have to bootstrap sgtk on the farm to do this.
What is it you are aiming to do, because you can do a lot just with the python api.
If you really want to bootstrap you can follow this example:
---
layout: default
title: Nuke Write Node
pagename: tk-nuke-writenode
lang: en
---
# Nuke Write Node
The Nuke Write Node App provides a custom {% include product %} Write node which makes it easy to standardise the location where images are rendered to. It can be configured for each environment. In addition to the path, the configuration will also determine the render format to be used.
## General Use
In order to use the {% include product %} Write Node, save your script as a Toolkit work file first and then create a new node via the Nuke menu. This will create a node which looks similar to a normal write node:
![Write Node](../images/apps/nuke-writenode-write_node_creation.png)
Rather than entering a path by hand, you just specify an output name and Toolkit will then compute the rest of the path automatically. You can see the computed path in the UI and open up the location on disk by clicking the *Show in File System* button. The location where the renders are written to depends on the Toolkit configuration.
The renders will be versioned and the version number will always follow the current nuke script version which will be incremented automatically when you publish using Multi Publish.
This file has been truncated. show original
2 Likes