當前位置: 首頁>>代碼示例>>Python>>正文


Python Shotgun.note_thread_read方法代碼示例

本文整理匯總了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)
開發者ID:hayatojc,項目名稱:SG_Data_Pull,代碼行數:32,代碼來源:Python_Pull_v1.py


注:本文中的shotgun_api3.Shotgun.note_thread_read方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。