View Single Post
# 1 25-05-2006 , 01:33 AM
MattTheMan's Avatar
Registered User
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436

Maya->Indigo0.5.3/0.5.4 Exporter Script

Well, people, I haven't programmed in a while. Now I want to make an MEL script that takes a Maya scene and makes an Indigo XML file.

So far- this is what my program outputs:

<?xml version='1.0' standalone=no>
<!--Exported from Maya-->



	<tonemapping>		<reinhard>

		<colour_correction>1.0 1.0 1.0</colour_correction>

	<pos>2.852831591 -31.3782011 32.76079742</pos>
	<up>0 0 1</up>
	<forewards>-2.852831591 31.3782011 -27.63515811</forewards>
Yes, the numbers aren't just random outputs, they are actual processed positions. The camera target is a locator (with default name). The user can add an aim constraint to the camera from the locator if they want, it won't affect the script anyway.

Soon, I will have the vectors normalized, but, until then, this will have to do.

Also I'll have a window that prompts you, asks for settings, basically, a UI.

Live the life you love, love the life you live