You are on page 1of 6

Scribd

BROWSE
Meet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfsMeet the team
Our blogsdfdsfs
Search
UPLOADSAVED
{
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;

}
Get unlimited downloads as a member
Sign Up Now
Publish to the world
Presentations, research papers, legal documents, and more
Select Documents To Upload
or drag & drop
Supported file types: pdf, txt, doc, ppt, xls, docx, and more
By uploading, you agree to our Scribd Uploader Agreement
Reach more than 90
million readersUpload in secondsIndex with Google and
other search enginesEmbed on your own
website
FROM OUR USERS
Since discovering Scribd, it's the only website I use to upload and share my doc
uments. It's fast, easy to use, and I can upload as much as I want.
Marin S.
I go back to Scribd every time because I know I can trust it to work quickly and
the content will look great. Scribd helps me tell better stories.
Sara R.
I use Scribd because it's the best place to find high quality information and sh
are it with a global audience.
Almir O.
ABOUT
Browse books
Site directory
About Scribd
sffffffffffffffffffffffffffffffff
Join our team!
Contact Us
SUPPORT
Help
FAQ
Accessibility
Press
Purchase help
AdChoices
PARTNERS
Publishers
Developers / API
LEGAL
Terms
Privacy
Copyright
MEMBERSHIPS
Join today
Invite Friends
Gifts
STAY CONNECTED
Scribd on Appstore
Scribd on Google Play
Copyright 2017 Scribd Inc. .Terms of service.Accessibility.Privacy.Mobile Site.Si
te Language:
English

You might also like