Пример #1
0
 def __init__(self, envFile):
     if not envFile:
         raise RuntimeError("Must Set envfile value!")
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.whasset = self.whproject.getAsset(self.whcompany.env.AssetPrefix)
Пример #2
0
 def __init__(self, envFile):
     if not envFile:
         raise RuntimeError("Must Set envfile value!")
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.whsequence = self.whproject.getSequence(self.whcompany.env.SeqName)
     self.whshot = self.whsequence.getShot(self.whcompany.env.ShotName)
Пример #3
0
 def __init__(self, envFile):
     if not envFile:
         raise RuntimeError("Must Set envfile value!")
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.asset_list = self.whproject.asset_list
     self.asset_count = self.whproject.asset_count
     self.whassetlist = []
     for i in range(self.whproject.asset_count):
         self.whassetlist.append(self.asset_list[i].assetId)
Пример #4
0
    def __init__(self, envfile):
        self.envfile = envfile
        self.pathrools = {}

        self.whcom = whCompany()
        # self.envs()
        # self.pathrool()
        # self.paths()

        # print oscheck.userPath
        # print oscheck.getOSType
        # print oscheck.whAppPath

        self.env = whEnvData(self.envfile)
Пример #5
0
 def __init__(self,envFile, sequenceId):
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.shot_list = []
     for seqid in self.whproject.seq_list:
         if sequenceId == 'all':
             try:
                 for shot in self.whproject.seq_id[seqid.sequenceId].loadShots():
                     self.shot_list.append(shot[1])
             except:
                 pass
         else:
             if seqId.sequenceId == sequenceId:
                 try:
                     for shot in self.whproject.seq_id[sequenceId].loadShots():
                         self.shot_list.append(shot[1])
                 except:
                     pass
Пример #6
0
__author__ = 'c2monster'
import os, time
from wormholeAPI.whAPIModels import whCompany
from wormholeAPI.whAPIModels import whSequence
from wormholeAPI.whDataModels import whEnvData
from wormholeAPI.whAPIControls import WhSequenceList

from wormholeAPI.whAPIControls import WhShotPubHis
from wormholeAPI.whAPIControls import WhAssetPubHis

from pprint import pprint
import copy
import sys

envFile = os.path.abspath('') + '/wormHole.env'
whcom = whCompany()
env = whEnvData(envFile)
whcom.setEnvFile(envFile)
whcom.setCompanyId(env.Company)

projindex = None

for i in range(whcom.project_count):
    if str(whcom.project_list[i].projectId) == env.Project:
        projindex = i

nowTime = time.strftime("%Y.%m.%d_%H:%M", time.localtime())
try:
    whcom.project_list[projindex].paths.customReplaceEnv('CATEGORY', 'cha')

except:
Пример #7
0
 def __init__(self,envFile,sequenceId, shotId):
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.whseq = self.whproject.__dict__
     print self.whseq
Пример #8
0
 def __init__(self, envFile):
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.list = self.whproject.seq_list
     self.count = self.whproject.seq_count
Пример #9
0
 def __init__(self, envFile, assetId):
     self.whcompany = whCompany()
     self.whcompany.setEnvFile(envFile)
     self.whproject = self.whcompany.getProject(self.whcompany.env.Project)
     self.publishHis = self.whproject.getAsset(assetId).hist_list
     self.publishHis_count = self.whproject.getAsset(assetId).hist_count