Você está na página 1de 6

Scribd

You're moments away from accessing over 60 million documents for free
Select Your Trial
Enter Info
Start Reading!
Download Hultgren - e Know-How of Cartooning.pdf
Join Scribd with a 30 day free trial to access this document and 60 million more
, including books and audiobooks.
Creative writing Presentations Original essays Poetry
How-to-guides Spreadsheets School Work Historical documents
Upload
OR
Get unlimited downloads with a
30 day free trial
Download and print documents for offline reading.
Read unlimited documents on web, iOS, or Android
Enjoy an ad-free experience. Cancel anytime.
Monthly Membership
Get One Month Free!{
if (`window -ex mg_headsUpSceneDetailsUI `)
deleteUI mg_headsUpSceneDetailsUI ;
window -t "Heads Up Info -"
mg_headsUpSceneDetailsUI ;
formLayout mainForm;
frameLayout -l "Enter The Details You Want To Show Up "
-la center
-lv 1
-mw 2
-mh 2
-bs etchedIn
mainFrame;

formLayout inForm;
button -l "Create Heads Up Display" -c "mg_CreateHUD()" applyButton;
button -l "Remove Heads Up Display" -c "mg_removeHUD()" cancelButton;
frameLayout -l "" -lv 0
-mw 2
-mh 2
disFrame;
columnLayout -adj 1 -cat both 5 disCol;
text -l "Owner Name :" -align left ownertxt;
textField -text `getenv "USERNAME"` -enable 0 owner;
separator -h 4 -style "none";
checkBoxGrp -l "cut : " -l1 "yes/no" -value1 1 -columnWidth2 85 80
sceneInfoSwitch;
textField -text `file -q -namespace` -enable off sceneInfo ;
separator -h 4 -style "none";
checkBoxGrp -l "Date | Time : " -l1 "yes/no" -value1 1 -columnWidth2
85 80 dateSwitch;
textField -text `date -format "DD - MM - YYYY | hh:mm "` -enable off dat
e ;
checkBoxGrp -l "Frame HUD : " -l1 "yes/no" -value1 1 -columnWidth2 85
80 frameSwitch;
setParent inForm;
frameLayout -l "" -lv 0
-mw 2
-mh 2
ableFrame;
columnLayout -adj 1 -cat "both" 5 ableFrame;
checkBoxGrp -l "Artist Name : " -l1 "yes/no" -value1 1 -columnWidth2
85 80 artistSwitch;
textField -text `getenv "USERNAME"` artist;
separator -h 4 -style "none";
checkBoxGrp -l "Scene Number:" -l1 "yes/no" -value1 1 -columnWidth2 85 8
0 sceneNumSwitch;
textField sceneNum ;
separator -h 4 -style "none";
checkBoxGrp -l "Current Status :" -l1 "yes/no" -value1 1 -columnWidth2 8
5 80 statusSwitch;
textField status ;
popupMenu;
menuItem -l "Work In Progress" -c ("textField -e -text \"Work In Progres
s\" status");
menuItem -l "To Be Approved" -c ("textField -e -text \"To Be Approved\"
status");
menuItem -l "Approved" -c ("textField -e -text \"Approved\" status");
separator -h 4 -style "none";
//checkBoxGrp -l "Frame HUD : " -l1 "yes/no" -value1 1 -columnWidth2 8
5 80 frameSwitch;
//setParent mainForm;

formLayout -e
-af disFrame left 5
-af disFrame top 5
-ap disFrame right 0 48
-af ableFrame right 5
-af ableFrame top 5
-ap ableFrame left 0 52
-ac applyButton top 5 disFrame
-af applyButton left 0
-ap applyButton right 0 52
-ac cancelButton top 5 disFrame
-af cancelButton right 0
-ap cancelButton left 0 52
inForm;
formLayout -e
-af mainFrame top 5
-af mainFrame left 5
-af mainFrame right 5
-af mainFrame bottom 5

mainForm;

showWindow mg_headsUpSceneDetailsUI ;
}

global proc mg_CreateHUD()


{

string $owner = `textField -q -text owner `;


string $artist = `textField -q -text artist `;
string $sceneInfo = `textField -q -text sceneInfo`;
string $sceneNum = ` textField -q -text sceneNum `;
string $date = `textField -q -text date` ;
string $status= `textField -q -text status ` ;

if (
(($artist=="") && (` checkBoxGrp -q -value1 artistSwitch `==1)) ||
(($sceneNum =="") && (` checkBoxGrp -q -value1 sceneNumSwitch`==1))
||
(($status=="") && (` checkBoxGrp -q -value1 statusSwitch`==1))
)
{
error "Head Up Info : - load the inputs correctly !";
}

mg_removeHUD();
if (` checkBoxGrp -q -value1 artistSwitch `==1)
{
headsUpDisplay -l "Animator "
-allowOverlap 1
-b 2
-s 5
-dataFontSize large
-command ("mg_string" + " " + $artist)
artistName;
}

if (` checkBoxGrp -q -value1 sceneInfoSwitch `==1)


{
headsUpDisplay -l "cut "
-allowOverlap 1
-b 4
-s 5
-dataFontSize large
-command "file -q -namespace" //"mg_scen
e()"
sceneName;
}

if (` checkBoxGrp -q -value1 sceneNumSwitch`==1)


{
headsUpDisplay -l "Scene # :"
-allowOverlap 1
-b 2
-s 2
-dataFontSize large
-command ("mg_string" + " " + $sceneNum
)
sceneNum;
}
if (` checkBoxGrp -q -value1 dateSwitch`==1)
{
headsUpDisplay -l "Date | Time "
-allowOverlap 1
-event "idle"
-nodeChanges "attributeChange"
-dataFontSize large
-command "date -format \"MM / DD / YYYY
| hh:mm \""
-b 3
-s 5
dateName;
}

if (` checkBoxGrp -q -value1 statusSwitch`==1)


{
headsUpDisplay -l "Status "
-allowOverlap 1
-b 2
-s 7
-dataFontSize large
-command ("mg_string" + " \"" + $status
+ "\"")
status;
}
if (` checkBoxGrp -q -value1 frameSwitch `==1)
{
headsUpDisplay -l "Frame "
-allowOverlap 1
-b 2
-s 8
-nodeChanges "instanceChange"
-dataFontSize large
-preset "currentFrame"
frameCounter;
}

global proc string mg_string(string $string)


{
return $string;
}
global proc float mg_float(float $float)
{
return $float;
}

global proc mg_removeHUD()


{
if (`headsUpDisplay -exists versionName` )
headsUpDisplay -rem versionName;
if (`headsUpDisplay -exists artistName` )
headsUpDisplay -rem artistName;
if (`headsUpDisplay -exists ownerName` )
headsUpDisplay -rem ownerName;
if (`headsUpDisplay -exists sceneName`)
headsUpDisplay -rem sceneName;
if (`headsUpDisplay -exists dateName`)
headsUpDisplay -rem dateName;
if (`headsUpDisplay -exists status`)
headsUpDisplay -rem status;
if (`headsUpDisplay -exists sceneNum`)
headsUpDisplay -rem sceneNum;
if (`headsUpDisplay -exists frameCounter`)
headsUpDisplay -rem frameCounter;

}
$8.99
per month
Billed once a month. Cancel anytime.
Download With Free Trial
As seen on
Logo_forbesLogo_wsjLogo_guardianLogo_timeLogo_cnn
Want Premium Reader access for free?
Active Scribd users who contribute quality content to the Scribd library are aut
omatically given access to content otherwise only available to subscribers. Uplo
ad your original documents and download this document, or any and as many other
documents as you'd like for free!
Start Uploading
Meet the team
Our blogsdfdsfs

Você também pode gostar