Skip to content

Instantly share code, notes, and snippets.

@yamadaaaaaaa
Created June 8, 2018 00:06
Show Gist options
  • Save yamadaaaaaaa/a0e62ff443e7c81a00b5a81908905aab to your computer and use it in GitHub Desktop.
Save yamadaaaaaaa/a0e62ff443e7c81a00b5a81908905aab to your computer and use it in GitHub Desktop.
SG_sample3
# -*- coding: utf-8 -*-
import shotgun_api3
sg = shotgun_api3.Shotgun('https://test.shotgunstudio.com', script_name='test_tool', api_key='0a1b2c3d4e5f9g7h8i9j')
result = sg.schema_field_read('Asset','code')
print(result)
sg.close()
# result
# {'code': {'mandatory': {'editable': False, 'value': True}, 'name': {'editable':True, 'value': 'Assets Name'}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment