Skip to content

dyeray-forks/zync-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zync Python API

Install / Setup

Clone this repository to a centrally available location at your facility. This library will be used by both the Maya and Nuke plugins, so it must be easily accessible.

Once cloned, create a new file zync-python/config.py. This file should contain one line:

ZYNC_URL = "https://<site>.zync.io"

This address will match the address you use to access your Zync Web Console.

A sample configuration file "config.py.sample" is included in this repository.

Usage

import zync

# set up a Zync object
z = zync.Zync('script_name', 'api_key')

# authenticate with Zync using Google login
z.login_with_google()

# supply some non-default rendering paramters
job_params = dict(frange = '1-100', chunk_size = 2)

# submit the job to Zync
z.submit_job('nuke', '/path/to/nuke_script.nk', 'write_node', job_params)

Dependencies

This library uses httplib2.

It is included with this API for convenience, though you can also install it with pip or easy_install:

pip install httplib2

The license for httplib2 is available here.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%