本文整理汇总了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) + ":"