hello,guys! i have a new pro want to be solved.
i create a headsUpDisplay to display the frame after playblast. For
example(I copy a part from my file)
headsUpDisplay( 'HUDObjectFrame',
section=0, block=0,
blockSize='small',
label='Current Frame:',
labelFontSize = 'large',
dataFontSize = 'large',
command = self.getShotName,
event = 'NewSceneOpened' )
def currentFrame(self, *args):
minTime = playbackOptions(q = True, min = True)
maxTime = playbackOptions(q = True, max = True)
currentFrame = currentTime(q = True)
displayTime = '%d ( %d / %d )'%(currentFrame,minTime ,maxTime)
return displayTime
That's all, when i'm changing the time slider, the display number will
be changed, but it just happened after stop change the time slider.
And after the playblast, it's also no change at the video.
I don't know whether a clear description above that.
I have a way to solve it but i don't think it's the best way.
i create a new function name refresh
def refresh():
try:
headsUpDisplay('HUDObjectFrame', r = True)
except:
pass
and i also create a new expression name refreshExp, it contains
python("refresh()")
I want to know is there any body have a better way to do that?
thank you for watch it!
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe