<s> """<STR_LIT>""" <EOL> from common . core import globalVariables as gv <EOL> from common . diagnostic . pcsLogger import pcs_logger <EOL> from common . fileIO . pcsPath import Path <EOL> import os <EOL> import re <EOL> import xml . etree . ElementTree as ET <EOL> logger = pcs_logger ( name = '<STR_LIT>' ) <EOL> class ParseSchema ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filePath = '<STR_LIT>' , team = '<STR_LIT>' , mobu = <NUM_LIT:0> , ** kwargs ) : <EOL> super ( ParseSchema , self ) . __init__ ( ) <EOL> self . filePath = filePath <EOL> if not filePath : <EOL> if mobu : <EOL> from pyfbsdk import FBApplication <EOL> self . filePath = Path ( FBApplication ( ) . FBXFileName . replace ( '<STR_LIT:\\>' , '<STR_LIT:/>' ) ) <EOL> if not self . filePath : <EOL> self . filePath = None <EOL> elif self . filePath . basename ( ) == '<STR_LIT>' : <EOL> self . filePath = None <EOL> else : <EOL> try : <EOL> from pymel . core import sceneName <EOL> except ImportError : <EOL> sceneName = None <EOL> logger . errorDialog ( "<STR_LIT>" ) <EOL> self . filePath = Path ( sceneName ( ) ) <EOL> if not self . filePath : <EOL> self . filePath = None <EOL> elif self . filePath . basename ( ) == '<STR_LIT>' : <EOL> self . filePath = None <EOL> if not team : <EOL> team = gv . teamA <EOL> relPath = ( os . path . dirname ( __file__ ) <EOL> . replace ( '<STR_LIT:\\>' , '<STR_LIT:/>' ) <EOL> . replace ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> self . xmlContent = ET . parse ( relPath + team + '<STR_LIT>' ) <EOL> self . coreList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . characterList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . environmentList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . exportList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . areaList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . mayaList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . mobuList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . team = team <EOL> if self . team == gv . teamA : <EOL> self . riggingList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . assetHubList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . fbxModels = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . retargetProcessing = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . sourceRetargetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetCharNode = self . mobuList . get ( "<STR_LIT>" ) <EOL> if self . team == gv . teamB : <EOL> self . riggingList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . fbxModels = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . retargetProcessing = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . sourceRetargetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetCharNode = self . mobuList . get ( "<STR_LIT>" ) <EOL> if self . team == gv . teamC : <EOL> self . riggingList = self . xmlContent . getiterator ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . fbxModels = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . retargetProcessing = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . sourceRetargetChar = eval ( self . mobuList . get ( "<STR_LIT>" ) ) <EOL> self . targetCharNode = self . mobuList . get ( "<STR_LIT>" ) <EOL> def getMayaDir ( self , attr ) : <EOL> return eval ( self . mayaList . get ( attr ) ) <EOL> def getMoBuDir ( self , attr ) : <EOL> return eval ( self . mobuList . get ( attr ) ) <EOL> @ property <EOL> def artRoot ( self ) : <EOL> return self . getMayaDir ( '<STR_LIT>' ) <EOL> @ property <EOL> def animationsRoot ( self ) : <EOL> return self . getMoBuDir ( '<STR_LIT>' ) <EOL> @ property <EOL> def environmentRoot ( self ) : <EOL> return self . getMayaDir ( '<STR_LIT>' ) <EOL> @ property <EOL> def characterRoot ( self ) : <EOL> return self . getMayaDir ( '<STR_LIT>' ) <EOL> def getUnitTestSource ( self ) : <EOL> return '<STR_LIT>' % gv . toolsLocation <EOL> def getWellFormed ( self , varName = '<STR_LIT>' , listName = '<STR_LIT>' ) : <EOL> if not listName . __class__ == str and listName . __module__ == '<STR_LIT>' : <EOL> self . list = listName <EOL> else : <EOL> self . list = self . xmlContent . getiterator ( listName ) <EOL> if not self . list : <EOL> logger . error ( '<STR_LIT>' % ( <EOL> listName , self . xmlContent , self . team ) ) <EOL> return <EOL> self . list = self . list [ <NUM_LIT:0> ] <EOL> for under in self . list . getiterator ( ) : <EOL> if under . get ( '<STR_LIT:name>' ) == varName : <EOL> result = under . get ( '<STR_LIT:value>' ) <EOL> if re . search ( '<STR_LIT>' , result ) : <EOL> result = float ( result ) <EOL> return result <EOL> def setFilePath ( self , filePath ) : <EOL> self . filePath = Path ( filePath ) <EOL> def setTeam ( self , team ) : <EOL> self . team = team <EOL> def findAnimationFolder ( self , team ) : <EOL> self . replace ( self . characterList . get ( "<STR_LIT>" ) , '<STR_LIT>' ) <EOL> class RigParse ( ParseSchema ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filePath = '<STR_LIT>' , team = '<STR_LIT>' ) : <EOL> super ( RigParse , self ) . __init__ ( ) <EOL> self . fileName = None <EOL> if not self . filePath : <EOL> return <EOL> self . filePath = self . filePath . replace ( '<STR_LIT>' , '<STR_LIT:/>' ) <EOL> self . filePath = self . filePath . replace ( '<STR_LIT:\\>' , '<STR_LIT:/>' ) <EOL> if self . team != gv . teamA : <EOL> self . filePath = self . filePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if re . search ( '<STR_LIT>' , self . filePath ) : <EOL> self . fileName = self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : self . filePath . rfind ( '<STR_LIT:.>' ) ] <EOL> else : <EOL> self . fileName = self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] <EOL> self . fileNameParts = self . fileName . split ( '<STR_LIT:_>' ) <EOL> self . relativeFilePath = self . filePath . replace ( self . characterRoot , '<STR_LIT>' ) . rsplit ( '<STR_LIT:/>' , <NUM_LIT:1> ) [ <NUM_LIT:0> ] + '<STR_LIT:/>' <EOL> self . pathNameParts = self . filePath . split ( '<STR_LIT:/>' ) <EOL> self . pathNameParts = [ notQuote for notQuote in self . pathNameParts if not notQuote == '<STR_LIT>' ] <EOL> def getBaseDir ( self ) : <EOL> """<STR_LIT>""" <EOL> rigShort = self . getRig ( ) . replace ( self . artRoot , '<STR_LIT>' ) <EOL> return rigShort [ : rigShort . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> ] <EOL> def getBuildScript ( self , charName ) : <EOL> if not self . filePath : <EOL> logger . error ( "<STR_LIT>" ) <EOL> if self . team == gv . teamA : <EOL> return self . filePath . replace ( self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) : ] , '<STR_LIT>' % charName ) <EOL> elif self . team == gv . teamD : <EOL> return self . filePath . replace ( self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) : ] , '<STR_LIT>' % charName ) <EOL> elif self . team == gv . teamD : <EOL> return '<STR_LIT>' % ( self . getMayaDir ( '<STR_LIT>' ) , charName ) <EOL> def getExpression ( self ) : <EOL> """<STR_LIT>""" <EOL> target = '<STR_LIT>' <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . result = '<STR_LIT>' . join ( self . _trailConstruct ( ) ) <EOL> if os . path . exists ( self . result ) : <EOL> return self . result <EOL> else : <EOL> self . pokeDir = self . _trailConstruct ( ) [ <NUM_LIT:0> ] <EOL> if self . team == gv . teamD : <EOL> self . pokeResult = self . _pokeFiles ( ) <EOL> if self . pokeResult : <EOL> return self . pokeResult <EOL> def getLocator ( self ) : <EOL> """<STR_LIT>""" <EOL> target = '<STR_LIT>' <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . result = '<STR_LIT>' . join ( self . _trailConstruct ( ) ) <EOL> if os . path . exists ( self . result ) : <EOL> return self . result <EOL> else : <EOL> self . pokeDir = self . _trailConstruct ( ) [ <NUM_LIT:0> ] <EOL> if self . team == gv . teamD : <EOL> self . pokeResult = self . _pokeFiles ( ) <EOL> if self . pokeResult : <EOL> return self . pokeResult <EOL> def getMesh ( self , charType = '<STR_LIT>' , charRace = '<STR_LIT>' , charVariant = '<STR_LIT>' , charGender = '<STR_LIT>' , combined = '<STR_LIT>' , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if charType : <EOL> self . charType = charType <EOL> self . charRace = charRace <EOL> self . charVariant = charVariant <EOL> self . charGender = charGender <EOL> self . fileName = charVariant <EOL> target = '<STR_LIT>' <EOL> explicit = <NUM_LIT:0> <EOL> if re . search ( '<STR_LIT:_>' , self . charVariant ) : <EOL> explicit = <NUM_LIT:1> <EOL> if not explicit : <EOL> if self . team == gv . teamA : <EOL> if re . search ( '<STR_LIT:body>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> elif self . team == gv . teamD : <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> resultPath , resultFile = self . _trailConstruct ( ) <EOL> if explicit : <EOL> resultFile = '<STR_LIT>' % self . charVariant <EOL> self . result = '<STR_LIT>' % ( resultPath , resultFile ) <EOL> if combined : <EOL> if not combined == <NUM_LIT:1> : <EOL> self . result = self . result . replace ( '<STR_LIT>' , '<STR_LIT>' % combined ) <EOL> else : <EOL> self . result = self . result . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if self . team == gv . teamA : <EOL> self . result = self . result . replace ( '<STR_LIT>' % self . charVariant , '<STR_LIT>' ) <EOL> if os . path . exists ( self . result ) : <EOL> return self . result <EOL> else : <EOL> self . pokeDir = self . _trailConstruct ( ) [ <NUM_LIT:0> ] <EOL> if self . team == gv . teamA : <EOL> self . pokeResult = self . _pokeFiles ( type = '<STR_LIT>' ) <EOL> elif self . team == gv . teamD : <EOL> self . pokeResult = self . _pokeFiles ( type = '<STR_LIT>' ) <EOL> elif self . team == gv . teamD : <EOL> self . pokeResult = self . _pokeFiles ( ) <EOL> if '<STR_LIT>' in dir ( self ) : <EOL> if not self . pokeResult == None : <EOL> return self . pokeResult <EOL> if combined : <EOL> logger . error ( "<STR_LIT>" % self . result ) <EOL> else : <EOL> logger . error ( "<STR_LIT>" % self . team ) <EOL> def getRig ( self ) : <EOL> """<STR_LIT>""" <EOL> assert ( <EOL> self . fileName ) , "<STR_LIT>" % self <EOL> target = '<STR_LIT>' <EOL> if self . team == gv . teamA : <EOL> if re . search ( '<STR_LIT:body>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> elif self . team == gv . teamD : <EOL> if re . search ( '<STR_LIT>' , self . fileNameParts [ <NUM_LIT:1> ] ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileNameParts [ <NUM_LIT:1> ] ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . charType ) : <EOL> target = '<STR_LIT>' + target <EOL> elif self . team == gv . teamD : <EOL> if re . search ( '<STR_LIT>' , self . charType ) : <EOL> target = '<STR_LIT>' + target <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . result = '<STR_LIT>' . join ( self . _trailConstruct ( ) ) <EOL> return self . result <EOL> def getSkeleton ( self ) : <EOL> """<STR_LIT>""" <EOL> target = '<STR_LIT>' <EOL> if self . team == gv . teamA : <EOL> if re . search ( '<STR_LIT:body>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> elif self . team == gv . teamD : <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . result = '<STR_LIT>' . join ( self . _trailConstruct ( ) ) <EOL> if os . path . exists ( self . result ) : <EOL> return self . result <EOL> else : <EOL> self . pokeDir = self . _trailConstruct ( ) [ <NUM_LIT:0> ] <EOL> if self . team == gv . teamD : <EOL> self . pokeResult = self . _pokeFiles ( ) <EOL> if self . pokeResult : <EOL> return self . pokeResult <EOL> def getWeight ( self ) : <EOL> """<STR_LIT>""" <EOL> target = '<STR_LIT>' <EOL> if self . team == gv . teamA : <EOL> if re . search ( '<STR_LIT:body>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> elif self . team == gv . teamD : <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> if re . search ( '<STR_LIT>' , self . fileName ) : <EOL> target = '<STR_LIT>' + target <EOL> self . folderKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . nameKey = self . characterList . get ( '<STR_LIT>' % target ) <EOL> self . result = self . _trailConstruct ( ) [ <NUM_LIT:0> ] <EOL> if os . path . exists ( self . result ) : <EOL> return self . result <EOL> def setCharVariant ( self , charVariant = '<STR_LIT>' ) : <EOL> self . charVariant = charVariant <EOL> def _pokeFiles ( self , _type = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> if self . team == gv . teamD : <EOL> if _type == '<STR_LIT>' : <EOL> if os . path . exists ( self . result . replace ( '<STR_LIT>' , '<STR_LIT>' ) ) : <EOL> return self . result . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> elif os . path . exists ( self . result . replace ( '<STR_LIT>' , '<STR_LIT>' ) ) : <EOL> return self . result . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> elif self . team == gv . teamD : <EOL> searchTerm = self . nameKey [ self . nameKey . rfind ( '<STR_LIT>' ) + <NUM_LIT:1> : ] <EOL> matchFile = '<STR_LIT>' <EOL> for unused , unused , files in os . walk ( self . pokeDir ) : <EOL> for name in files : <EOL> if name . strip ( ) . endswith ( searchTerm ) : <EOL> matchFile = self . pokeDir + name <EOL> if matchFile : <EOL> return matchFile <EOL> elif self . team == gv . teamA : <EOL> pass <EOL> def _trailConstruct ( self ) : <EOL> """<STR_LIT>""" <EOL> if not self . charVariant : <EOL> charVariant = '<STR_LIT>' <EOL> else : <EOL> charVariant = '<STR_LIT>' <EOL> resultFile = ( self . nameKey . replace ( '<STR_LIT::>' , '<STR_LIT:_>' ) <EOL> . replace ( '<STR_LIT>' , self . charRace ) <EOL> . replace ( '<STR_LIT>' , self . charGender ) <EOL> . replace ( charVariant , self . charVariant ) <EOL> . replace ( '<STR_LIT>' , self . charType ) <EOL> . replace ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> resultPath = ( self . characterRoot + ( self . folderKey . replace ( '<STR_LIT::>' , '<STR_LIT:/>' ) <EOL> . replace ( '<STR_LIT>' , self . charRace ) <EOL> . replace ( '<STR_LIT>' , self . charGender ) <EOL> . replace ( '<STR_LIT>' , self . charVariant ) <EOL> . replace ( '<STR_LIT>' , self . charType ) <EOL> . replace ( '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> resultFile = resultFile . replace ( '<STR_LIT>' , '<STR_LIT:_>' ) <EOL> resultPath = resultPath . replace ( '<STR_LIT>' , '<STR_LIT:/>' ) <EOL> return resultPath , resultFile <EOL> class RigParseFromArgs ( RigParse ) : <EOL> def __init__ ( self , filePath = '<STR_LIT>' , team = '<STR_LIT>' ) : <EOL> super ( RigParseFromArgs , self ) . __init__ ( ) <EOL> class ExportParse ( ParseSchema ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , filePath = '<STR_LIT>' , team = '<STR_LIT>' ) : <EOL> super ( ExportParse , self ) . __init__ ( ) <EOL> self . runTimeArtRoot = eval ( self . exportList . get ( "<STR_LIT>" ) ) <EOL> self . exportKey = self . exportList . get ( "<STR_LIT>" ) <EOL> if self . filePath : <EOL> if os . path . isdir ( self . filePath ) : <EOL> self . exportSourceFolder = self . filePath + '<STR_LIT:/>' <EOL> else : <EOL> self . exportSourceFolder = os . path . dirname ( self . filePath ) + '<STR_LIT:/>' <EOL> else : <EOL> logger . warning ( '<STR_LIT>' ) <EOL> def getExport ( self , wFile = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> if not self . filePath or not self . exportSourceFolder : <EOL> return <EOL> if self . team == gv . teamA : <EOL> self . exportKey = int ( self . exportKey ) <EOL> if wFile : <EOL> self . exportPath = ( '<STR_LIT>' % ( self . exportSourceFolder . rsplit ( '<STR_LIT:/>' , ( self . exportKey + <NUM_LIT:1> ) ) [ <NUM_LIT:0> ] + '<STR_LIT:/>' , <EOL> self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) ) . replace ( "<STR_LIT>" , <EOL> "<STR_LIT>" ) . replace ( <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> else : <EOL> self . exportPath = self . exportSourceFolder . rsplit ( '<STR_LIT:/>' , ( self . exportKey + <NUM_LIT:1> ) ) [ <NUM_LIT:0> ] + '<STR_LIT:/>' <EOL> logger . debug ( '<STR_LIT>' % self . exportSourceFolder ) <EOL> return self . exportPath <EOL> elif self . team == gv . teamB : <EOL> if re . search ( '<STR_LIT>' , self . filePath ) : <EOL> self . exportFileName = self . filePath . basename ( ) . replace ( "<STR_LIT>" , "<STR_LIT>" ) . replace ( "<STR_LIT>" , "<STR_LIT>" ) . replace ( <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> rigPath = self . filePath [ : self . filePath . rfind ( '<STR_LIT>' ) ] <EOL> weapon = self . exportFileName . split ( '<STR_LIT:_>' ) [ <NUM_LIT:1> ] <EOL> self . exportPath = Path ( '<STR_LIT>' % ( rigPath , weapon , self . exportFileName ) ) <EOL> else : <EOL> self . exportPath = Path ( self . filePath . replace ( "<STR_LIT>" , "<STR_LIT>" ) . replace ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> if not wFile : <EOL> self . exportPath = self . exportPath . parent <EOL> return self . exportPath . makePretty ( ) <EOL> elif self . team == gv . teamD : <EOL> strFrom = self . exportKey [ self . exportKey . find ( '<STR_LIT::>' , <NUM_LIT:2> ) + <NUM_LIT:1> : self . exportKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) ] <EOL> strTo = self . exportKey [ self . exportKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) + <NUM_LIT:1> : ] <EOL> self . exportPath = self . exportSourceFolder . replace ( strFrom , strTo ) <EOL> if wFile : <EOL> self . exportPath = '<STR_LIT>' % ( self . exportPath , self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) <EOL> return self . exportPath <EOL> elif self . team == gv . teamD : <EOL> if re . match ( self . environmentRoot , self . exportSourceFolder ) : <EOL> envMeshKey = self . exportList . get ( '<STR_LIT>' ) <EOL> envMeshKeySource = envMeshKey [ envMeshKey . find ( '<STR_LIT::>' , <NUM_LIT:2> ) + <NUM_LIT:1> : envMeshKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) ] <EOL> envMeshKeyTarget = envMeshKey [ envMeshKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) + <NUM_LIT:1> : ] <EOL> envAnimKey = self . exportList . get ( '<STR_LIT>' ) <EOL> envAnimKeySource = envAnimKey [ envAnimKey . find ( '<STR_LIT::>' , <NUM_LIT:2> ) + <NUM_LIT:1> : envAnimKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) - <NUM_LIT:3> ] <EOL> envAnimKeyTarget = envAnimKey [ envAnimKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) + <NUM_LIT:1> : ] <EOL> if re . search ( envAnimKeySource , self . exportSourceFolder ) : <EOL> self . exportPath = self . exportSourceFolder . split ( envAnimKeySource ) [ <NUM_LIT:0> ] + envAnimKeyTarget <EOL> if wFile : <EOL> self . exportPath = '<STR_LIT>' % ( self . exportPath , self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) <EOL> if self . exportPath : <EOL> return self . exportPath <EOL> else : <EOL> self . exportPath = self . exportSourceFolder . replace ( envMeshKeySource , envMeshKeyTarget ) <EOL> if wFile : <EOL> self . exportPath = '<STR_LIT>' % ( self . exportPath , self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) <EOL> if self . exportPath : <EOL> return self . exportPath <EOL> if re . match ( self . characterRoot , self . exportSourceFolder ) : <EOL> charMeshKey = self . exportList . get ( '<STR_LIT>' ) <EOL> charMeshKeySource = charMeshKey [ charMeshKey . find ( '<STR_LIT::>' , <NUM_LIT:2> ) + <NUM_LIT:1> : charMeshKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) ] <EOL> charMeshKeyTarget = charMeshKey [ charMeshKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) + <NUM_LIT:1> : ] <EOL> charAnimKey = self . exportList . get ( '<STR_LIT>' ) <EOL> charAnimKeySource = charAnimKey [ charAnimKey . find ( '<STR_LIT::>' , <NUM_LIT:2> ) + <NUM_LIT:1> : charAnimKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) - <NUM_LIT:3> ] <EOL> charAnimKeyTarget = charAnimKey [ charAnimKey . rfind ( '<STR_LIT::>' , <NUM_LIT:1> ) + <NUM_LIT:1> : ] <EOL> if re . search ( charAnimKeySource , self . exportSourceFolder ) : <EOL> self . exportPath = self . exportSourceFolder . split ( charAnimKeySource ) [ <NUM_LIT:0> ] + charAnimKeyTarget <EOL> if wFile : <EOL> self . exportPath = '<STR_LIT>' % ( self . exportPath , self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) <EOL> if self . exportPath : <EOL> return self . exportPath <EOL> else : <EOL> self . exportPath = self . exportSourceFolder . replace ( charMeshKeySource , charMeshKeyTarget ) <EOL> if wFile : <EOL> self . exportPath = '<STR_LIT>' % ( self . exportPath , self . filePath [ self . filePath . rfind ( '<STR_LIT:/>' ) + <NUM_LIT:1> : ] ) <EOL> if self . exportPath : <EOL> return self . exportPath <EOL> def getRunTimeArt ( self , wFile = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> fileLoc = self . getExport ( wFile ) <EOL> runTimeFilePath = fileLoc . replace ( self . characterRoot , self . runTimeArtRoot ) <EOL> return runTimeFilePath <EOL> def getRunTime ( self ) : <EOL> return self . runTimeArtRoot [ : self . runTimeArtRoot . rfind ( '<STR_LIT>' ) + <NUM_LIT:8> ] <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> print '<STR_LIT>' <EOL> else : <EOL> print "<STR_LIT>" </s>
