heres a aexample of method 1 yeah i know the proc could be done with 2 loops, its jsut a quick prototype made in 3 mins (so the code ais bit ad hoc):
CODE
global proc string[] timecode (int $timeBase)
{
string $build="",$timecode[];
int $time,$temp;
$time=currentTime -q
;
$temp=$time/(60*60*$timeBase);
$time=$time -($temp*60*60*$timeBase);
if ($temp<10)
$build+="0";
$build+=($temp+":");
$temp=$time/(60*$timeBase);
$time=$time -($temp*60*$timeBase);
if ($temp<10)
$build+="0";
$build+=($temp+":");
$temp=$time/($timeBase);
$time=$time -($temp*$timeBase);
if ($temp<10)
$build+="0";
$build+=($temp+":");
if ($time<10)
$build+="0";
$build+=$time;
$timecode[0]=$build;
return $timecode;
}
headsUpDisplay -removePosition 0 0; //clear the previous one
headsUpDisplay -section 0
-block 0
-blockAlignment "left"
-blockSize "medium"
-label ""
-dataFontSize "large"
-command "timecode(24)" //set your timebase here!!
-attachToRefresh
timecode;
expression -n "hudRefresh"
-s ("headsUpDisplay"+
"-refresh timecode;")
-o "" -ae 1 -uc al; //make sure it refreshes duirng playback.
perosnaly i prefeer method 2!
The expresssion can be omitted if yoru not interested in playback
mnhan yes but thet does not print it on the playblast 