예제 #1
0
	def publish(self):
		"""docstring for publish"""
		if INMAYA:
			fil = mfl.currentFile()
			if not fil:
				print 'Please Save File To create Playblast'
				return
			movFil = fl.File( fil.versionPath + fil.name + '_v' + str( fil.version ).zfill( 3 ) + '.mov' )
		elif INHOU:
			fil = hfl.currentFile()
			if not fil:
				print 'Please Save File To create Playblast'
				return
			movFil = fl.File( fil.versionPath + fil.name + '_v' + str( fil.version ).zfill( 3 ) + '.mov' )
		if movFil.exists:
			movFil.copy( fil.dirPath + fil.name + '.mov' )
			settings = sti.Settings()
			gen = settings.General
			if gen:
				self.sendMail = gen[ "sendmail" ]
				self.mailServer = gen[ "mailserver" ]
				self.mailPort = gen[ "mailport" ]
				self.mailsPath = gen[ "departmentspath" ]
				AssOrShot = prj.shotOrAssetFromFile( movFil )
				ml.mailFromTool( 'new_playblast',
					{ '<ProjectName>': AssOrShot.project.name,
					'<SequenceName>': AssOrShot.sequence.name,
					'<ShotName>': AssOrShot.name,
					'<UserName>': os.getenv('username'),
					'<Path>':fil.dirPath + fil.name + '.mov'},
					os.getenv('username') + '@bitt.com',
					self.mailsPath , self.mailServer, self.mailPort  )
예제 #2
0
def playblastCurrentFile():
	"""docstring for playblastCurrentFile"""
	fil = hfl.currentFile()
	if not fil:
		print 'Please Save File To create Playblast'
		return
	movFil = fl.File( fil.versionPath + fil.name + '_v' + str( fil.version ).zfill( 3 ) + '.mov' )
	fil.newVersion();fil.save()
	playblast( movFil )
	if movFil.exists:
		movFil.copy( fil.dirPath + fil.name + '.mov' )
예제 #3
0
 def publish(self):
     """docstring for publish"""
     if INMAYA:
         fil = mfl.currentFile()
         if not fil:
             print 'Please Save File To create Playblast'
             return
         movFil = fl.File(fil.versionPath + fil.name + '_v' +
                          str(fil.version).zfill(3) + '.mov')
     elif INHOU:
         fil = hfl.currentFile()
         if not fil:
             print 'Please Save File To create Playblast'
             return
         movFil = fl.File(fil.versionPath + fil.name + '_v' +
                          str(fil.version).zfill(3) + '.mov')
     if movFil.exists:
         movFil.copy(fil.dirPath + fil.name + '.mov')
         settings = sti.Settings()
         gen = settings.General
         if gen:
             self.sendMail = gen["sendmail"]
             self.mailServer = gen["mailserver"]
             self.mailPort = gen["mailport"]
             self.mailsPath = gen["departmentspath"]
             AssOrShot = prj.shotOrAssetFromFile(movFil)
             ml.mailFromTool(
                 'new_playblast', {
                     '<ProjectName>': AssOrShot.project.name,
                     '<SequenceName>': AssOrShot.sequence.name,
                     '<ShotName>': AssOrShot.name,
                     '<UserName>': os.getenv('username'),
                     '<Path>': fil.dirPath + fil.name + '.mov'
                 },
                 os.getenv('username') + '@bitt.com', self.mailsPath,
                 self.mailServer, self.mailPort)