I wish to implement particular data into playblasts.
import os
import pymel.core as pm
user = os.getenv('USERNAME')
def data():
reel = 'REEL_01'
seq = '370'
shot = '010'
frames = '112'
frame = pm.currentTime( query=True )
out = '{0} E{1}_S{2} << {3} >> ( {4} ) by: {5}'.format(reel, seq, shot, frame, frames, user)
return out
hud = pm.headsUpDisplay( 'HUD', section = 6, block = 1, blockSize = 'medium', label = 'SHOT DATA:', labelFontSize='large', command = data, event='idle')
The problem is that current frame info ( pm.currentTime( query=True ) ) updates only when you scroll timeline in Maya, but not during making playblast. I know there predefined HUD “current frame” but i wish to sort information in custom way and have grater control over it.
