View Single Post
# 177 22-10-2006 , 11:49 PM
arneoog's Avatar
Registered User
Join Date: Mar 2006
Posts: 189
Okay.

If you start on the object and material editor they should be in separate files called
mtiObjectEditor and mtiMaterialEditor user added image

Commands = mtiObjectEditor and mtiMaterialEditor

Content so far on the object editor (mtiObjectEditor.mel):
Code:
//-----------------MAYA TO INDIGO XML CONVERTER------------------
//Version: BETA 0.6 (0.6) synced!
//---------------------------------------------
//Credits:
//Matt B. (aka MattTheMan or ThatDude33) (converter engine and more)
//Arne OOG (aka arneoog) (interface and more)
//XML Output in Script Window and Auto Save
//No edits should be neccesary
//Start Writing:

//-----------------OBJECT EDITOR------------------

global proc mtiObjectEditor() 
{ 
window -title "Object Editor" -h 340 -w 570 objE00444;
rowLayout -numberOfColumns 2 -columnWidth2 174 310;
 	textScrollList -width 160 -height 306 -numberOfRows 8 -allowMultiSelection false 
 		-append "one"      -append "two"      -append "three" 
 		-append "four"     -append "five"     -append "six" 
 		-append "seven"    -append "eight"    -append "nine" 
 		-append "ten"      -append "eleven"   -append "twelve" 
 		-append "thirteen" -append "fourteen" -append "fifteen"
 		-selectItem "six"
 		-showIndexedItem 4;
 			                setParent ..;
 			setParent ..;
columnLayout;
text -label "Material Settings" -w 400 -align "left" -font "boldLabelFont";
	separator -h 10 -w 400;
 			shelfLayout -width 390 -cellWidth 34 -cellHeight 34;
shelfButton -annotation "Diffuse Shader" -image "mtiIcons/indigo_diffuce.bmp" -command "diffuce";
shelfButton -annotation "Phong Shader" -image "mtiIcons/indigo_phong.bmp" -command "phong";
shelfButton -annotation "Specular Shader" -image "mtiIcons/indigo_specular.bmp" -command "specular";
shelfButton -annotation "Mesh Light Shader" -image "mtiIcons/indigo_meshLight.bmp" -command "meshlight";
shelfButton -annotation "Metal Shader" -image "mtiIcons/indigo_metal.bmp" -command "metal";

 				setParent ..;

rowLayout -numberOfColumns 2 -columnWidth2 170 230;
text -label "Name Of Material Type" -w 170 -align "left";
textField -w 200;
 			                setParent ..;

	colorSliderGrp -h 25 -label "Diffuse" -rgb 0.5 0.5 0.5;

	colorSliderGrp -h 25 -label "Specular" -rgb 0 0 0;

	floatSliderGrp -h 25 -label "Exponent" -field true 
                -fieldMinValue -10000 -fieldMaxValue 10000 
                -minValue 0.001 -maxValue 10000 -value 10000;
	separator -h 10 -w 400;
text -label "" -h 20 -align "left";

optionMenu -label "Add Existing Materials";
		menuItem -label "?????";
text -label "" -align "left";
text -label "Object settings" -w 400 -align "left" -font "boldLabelFont";
	separator -h 10 -w 400;
checkBox -label "Normal Smoothing" -value 1;
 			                setParent ..;
 			setParent ..;

			showWindow;
}
Happy Scripting! user added image :p


Last edited by arneoog; 22-10-2006 at 11:51 PM.