Im not that familiar with MEL, I added the very bottom string from a different HUD Melscript. Im just trying to put it up in the HUD menu. I just want to have option of toggling on & off the visibility. Please help
//written by Janne Ojala.
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.
global string $gHeadsUpDisplayMenu;
menuItem
-parent $gHeadsUpDisplayMenu
-checkBox true
-label "Timecode"
-command "optionVar -intValue HUD menuItem -q -cb HUDMenuTimecode
; headsUpDisplay -e -vis optionVar -q HUDS
HUDTimecode;"
-annotation "Timecode: Toggle the display of timecode";