本文整理匯總了Python中shotgun_api3.Shotgun.schema_read方法的典型用法代碼示例。如果您正苦於以下問題:Python Shotgun.schema_read方法的具體用法?Python Shotgun.schema_read怎麽用?Python Shotgun.schema_read使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類shotgun_api3.Shotgun
的用法示例。
在下文中一共展示了Shotgun.schema_read方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Shotgun
# 需要導入模塊: from shotgun_api3 import Shotgun [as 別名]
# 或者: from shotgun_api3.Shotgun import schema_read [as 別名]
from docx import Document
from shotgun_api3 import Shotgun
# Setting up API for Shotgun
SERVER_PATH = ""
SCRIPT_NAME = ''
SCRIPT_KEY = ''
sg = Shotgun(SERVER_PATH, SCRIPT_NAME, SCRIPT_KEY)
# Tools used to Query the project name to their ID
proj = sg.find_one("Project", [["name", "is", "Walt Denny"]])
print proj
query = sg.schema_read()['Asset'].keys()
print query
print sg.schema_read()['Asset'].get('sg_rpm_number')
# Function to format the text that gets read by Note_Thread_Read
def formatted(x):
x.pop("type", None)
x.pop("id", None)
Name = x.get('created_by', {}).get('name')
Name2 = x.get('user', {}).get('name')
global thread
if 'content' in x:
if Name == None:
thread += "\n"
thread += str(Name2) + ":"
thread += "\n"
else:
thread += "\n"
thread += str(Name) + ":"