예제 #1
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.fromMaya import FromMaya

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))
    fromMaya = FromMaya(testInfo)

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

    fromMaya.addStills("cylinder.mb", [1, 8, 15, 4, 30, 38, 45, 42])
    fromMaya.replaceStill("cylinder.mb", 40)
    fromMaya.addPlayblast("cylinder.mb")
    fromMaya.replacePlayblast("cylinder.mb")
    fromMaya.addSequencerShots("cylinder.mb", 5)
    fromMaya.replaceSequencerShot("cylinder.mb", 4)
    fromMaya.addSequencer("cylinder.mb")
    fromMaya.publishSequencer("cylinder.mb")
    #####################################################

except Exception:
예제 #2
0
import testInfo
import traceback
from utils import sikuliUtils
from tests.launch import Launch
from tests.projectBrowser import ProjectBrowser
from tests.fromMaya import FromMaya

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))
    fromMaya = FromMaya(testInfo)

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

    fromMaya.addStills()
    fromMaya.replaceStill()
    fromMaya.addPlayblast()
    fromMaya.replacePlayblast()
    fromMaya.addSequencerShots()
    fromMaya.replaceSequencerShot()
    fromMaya.addSequencer()
    fromMaya.publishSequencer()
    #####################################################

except Exception:
예제 #3
0
import testInfo
import traceback
from utils import sikuliUtils
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")