示例#1
0
from tests.projectBrowser import ProjectBrowser
from tests.editTools import EditTools
from tests.importDrawing import ImportDrawing
from tests.toEditorial import ToEditorial

try:
    # Construct new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Construct test objects here (e.g. fromMaya = FromMaya(testInfo))
    editTools = EditTools(testInfo)
    importDrawing = ImportDrawing(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    importDrawing.importDrawings()
    editTools.addDialogue("Adding dialogue for panel [panelIndex]", firstPanel=2, lastPanel=4)
    toEditorial.toAvid("Publishing some panels with dialogue to Avid.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('dialogueToAvid: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
示例#2
0
from tests.projectBrowser import ProjectBrowser
# Import additional test modules here (e.g. from tests.fromMaya import FromMaya)
from tests.importDrawing import ImportDrawing
from tests.toEditorial import ToEditorial

try:
    # Create new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Create test objects here (e.g. fromMaya = FromMaya(testInfo))
    importDrawing = ImportDrawing(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    importDrawing.importDrawings('psd', 5)
    importDrawing.importDrawings('mov', 11)
    importDrawing.importDrawings('jpeg', 15)
    toEditorial.toAvid(comment="Publishing all these panels to Avid.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('moviesToAvid: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
示例#3
0
from utils import sikuliUtils
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
# Import additional test modules here (e.g. from tests.fromMaya import FromMaya)
from tests.fromSBP import FromSBP
from tests.toEditorial import ToEditorial

try:
    # Create new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Create test objects here (e.g. fromMaya = FromMaya(testInfo))
    fromSbp = FromSBP(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    fromSbp.sbpToFlix()
    toEditorial.toAvid('Publishing buds bud to Avid')
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('budsBudSbpAvid: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
示例#4
0
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
from tests.fromMaya import FromMaya
from tests.toEditorial import ToEditorial

try:
    # Construct new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Construct test objects here (e.g. fromMaya = FromMaya(testInfo))
    fromMaya = FromMaya(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.
    fromMaya.addStills(frames=[1, 2, 3, 4, 5, 6, 10])
    fromMaya.addSequencerShots(nShots=3)

    toEditorial.toPremiere("Publishing Maya stuff to Premiere.")
    toEditorial.toAvid("Publishing Maya stuff to Avid.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log("mayaToEditorial: " + str(var), "error")

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
    # Create new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)

    # Create test objects here (e.g. fromMaya = FromMaya(testInfo))
    importDrawing = ImportDrawing(testInfo)
    editTools = EditTools(testInfo)
    fromPs = FromPS(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    importDrawing.importPanels('panel', 'jpeg', 5)
    fromPs.psCurrentImage(['panel11', 'panel12'])
    editTools.copyPastePanel('panel1.png')
    editTools.copyPastePanel('panel5.png')
    editTools.duplicatePanel('panel3.png')
    toEditorial.toPremiere(comment="Instances and duplicates to Premiere.")
    toEditorial.toAvid(comment="Instances and duplicates to Avid.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('basicFlixFunctions: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
示例#6
0
from tests.toEditorial import ToEditorial

try:
    # Construct new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Construct test objects here (e.g. fromMaya = FromMaya(testInfo))
    fromPS = FromPS(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    fromPS.psCurrentImage()
    fromPS.psEachLayerComp()
    fromPS.psEachLayer()
    fromPS.psEachFrame()

    toEditorial.toAvid("Publishing PS stuff to Avid.")
    toEditorial.toPremiere("Publishing PS stuff to Premiere.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('psToEditorial: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
示例#7
0
from tests.toEditorial import ToEditorial

try:
    # Create new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Create test objects here (e.g. fromMaya = FromMaya(testInfo))
    fromSbp = FromSBP(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    fromSbp.sbpToFlix('qa_testv1')
    toEditorial.toAvid("Publishing SBP sequence to Avid.")
    fromSbp.sbpToFlix('qa_testv2')
    toEditorial.toAvid("Publishing SBP sequence v2 to Avid.")
    projectBrowser.createCleanVersion()
    fromSbp.sbpToFlix('budsBud')
    toEditorial.toAvid("Publishing budsBud sequence to Avid.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('sbpAvid: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)