awesome man! thanks very much, i should have more test about the arguments!
On 8月9日, 上午5时05分, kinetifex <[email protected]> wrote: > Currently, your HUD will only update one the event "NewSceneOpened". > You need to remove the event argument from your HUD and instead use > attachToRefresh=True. > > You don't use expressions to refresh the HUD. > This should work for you: > > def currentFrame(): > 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 > > if headsUpDisplay( 'HUDObjectFrame', exists=True ): > headsUpDisplay( 'HUDObjectFrame', remove=True ) > > headsUpDisplay( 'HUDObjectFrame', > section=0, > block=headsUpDisplay( nextFreeBlock=0 ), > blockSize='small', > label='Current Frame:', > labelFontSize = 'large', > dataFontSize = 'large', > command = currentFrame, > attachToRefresh=True > ) > > -Andrew -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
