from tests.importDrawing import ImportDrawing
from tests.editTools import EditTools
from tests.fromPS import FromPS
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)
    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:
Beispiel #2
0
import testInfo
import traceback
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.fromPS import FromPS

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))
    fromPs = FromPS(testInfo)

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

    fromPs.psCurrentImage()
    fromPs.psReplaceImage()
    fromPs.psEachFrame()
    fromPs.psEachLayer()
    # Each Layer + BG
    fromPs.psEachLayer(BG=1)
    # Each Layer + BG/FG
    fromPs.psEachLayer(BG=1, FG=1)
    fromPs.psEachLayerComp()
    #####################################################
import testInfo
import traceback
from utils import sikuliUtils
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
from tests.fromPS import FromPS
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: