ImportierenPython

Python-Programme
Anonymous
 Importieren

Post by Anonymous »

Eine Vorstellung, wie man einige .tpl -Elemente in die tatsächliche .xstage -Datei über Python (oder JS) importiert oder hinzufügt. Vorlage: < /p>

Code: Select all

from ToonBoom import harmony
harmony.Clipboard.copy_from_template("C:/path/to/the/tpldirectory")

# > Traceback (most recent call last):
# > File "", line 1, in 
# > TypeError: descriptor 'copy_from_template' for 'harmony.Clipboard' objects doesn't apply to a 'str' object
Weitere Informationen zur offiziellen Dokumentation zu Copy_From_Template hier
und hier die Dokumentation für das Äquivalent mit JavaScript -API für den CopyFromTemplate hier
Leider bin ich mir nicht sicher, wenn der Ansatz entweder eingeschrieben wird.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post