Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial shotgrid client #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

shhlife
Copy link

@shhlife shhlife commented Oct 31, 2023

Created an initial Shotgrid client to work with Autodesk Shotgrid.

https://www.shotgridsoftware.com/

For this to work, you'll need a Shotgrid account. Once you have that, you'll need:
site: The URL of your Shotgrid server
script_name: The name of the API script registered in Shotgrid.
script_key: API key of the script registered in shotgrid.

Information on how to create the script and API keys:
https://help.autodesk.com/view/SGDEV/ENU/?guid=SGD_py_python_api_create_manage_html

Here's how you would define an agent once you have those:

# Set the variables
SERVER_PATH = "https://my-shotgrid-url.shotgrid.autodesk.com"
SCRIPT_NAME = "myscript"
SCRIPT_KEY = "xxxx-xxxxxxxxxxxxxxx"

# Define the agent
agent = Agent(
  tools=[
    ShotgridClient(
      site=SERVER_PATH, 
      script_name=SCRIPT_NAME, 
      script_key=SCRIPT_KEY)
  ]
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant