本文整理汇总了Python中shotgun_api3.Shotgun.note_thread_read方法的典型用法代码示例。如果您正苦于以下问题:Python Shotgun.note_thread_read方法的具体用法?Python Shotgun.note_thread_read怎么用?Python Shotgun.note_thread_read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shotgun_api3.Shotgun
的用法示例。
在下文中一共展示了Shotgun.note_thread_read方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: str
# 需要导入模块: from shotgun_api3 import Shotgun [as 别名]
# 或者: from shotgun_api3.Shotgun import note_thread_read [as 别名]
dictStr = dictStr.splitlines()
try:
thread += str(dictStr[0])
except IndexError:
thread += 'null'
continue
# Setting the fileName of the document
try:
fileName = 'Walt Denny - ' + i['sg_rpm_number'] + ' ' + i['cached_display_name']
except TypeError:
filename = 'Walt Denny - ' + i['cached_display _name']
print fileName
# Get's the id(TITLE) and formats it.Then appends the thread to it
currentID = str(dict[0]['id'])
if currentID in excludeID:
continue
list3 = sg.note_thread_read(int(currentID), formatting)
for key in list3:
thread += "\n"
note = formatted(key)
if 'content' in note:
thread += str(note['content'])
else:
pass
thread += '\n**END OF THREAD**'
#Calls the Word function for file generation
writeDoc(dictStr, thread, fileName)