Hi all,
Just wanted to point out some minor changes and new additions made to
the trunk today
since quite a lot of you are using these.
//Obj class update
Obj: both f9 and f10 support now last .mtl source adres in case of
extra arguments, required for outputs from apps such as LD3T.
example of mtl source that was not working:
map_Kd -s 1 1 1 -o 0 0 0 -mm 0 1 testExport.jpg
loads now "testExport.jpg" correctly instead of "-s"
@David, it is, I'm sorry pretty impossible to support both variable
args +spaces + dir names with spaces
without making the parser a monster. Just add no space to your
relative url and it should now work as espected.
thx for the test files
-------------------------------------------------
For the Away3d Flash 10 version
both the Obj and AS3 exporters were updated to avoid the user input to
fill the clipboard issue.
The way they work now:
//AS3Exporter
var exporter:AS3Exporter = new AS3Exporter();
exporter.addOnExportComplete(classReady);
exporter.export(object3d, myclassName, mypackageName);
//using the ExporterEvent data
import away3d.events.ExporterEvent
private function classReady(e:ExporterEvent):void
{
trace("as3 generated: "+e.data);
}
//in case you want to avoid import the ExporterEvent
and use regular events or access the class output later on
a var "as3File" is available
private function classReady(e:Event):void
{
trace((e.target as AS3Exporter).as3File);
}
or if your AS3Exporter is a class var "myExporter"
var myoutput:String = myExporter.as3File;
//ObjExporter
var exporter:ObjExporter = new ObjExporter();
exporter.addOnExportComplete(classReady);
exporter.export(object3d);
//using the ExporterEvent data
import away3d.events.ExporterEvent
private function classReady(e:ExporterEvent):void
{
trace("obj generated: "+e.data);
}
//in case you want to avoid import the ExporterEvent
and use regular events or access the class output later on
a var "objFile" is available
private function classReady(e:Event):void
{
trace((e.target as ObjExporter).objFile);
}
or if your ObjExporter is a class var "myExporter"
var myoutput:String = myExporter.objFile;
-------------------------------------------------
//AS3ExporterAIR & ObjExporterAIR
Added in a new package dedicated to AIR specific classes.
The classes added in this package are similar to regular classes but
holds more functionality, (mostly write features)
making them ideal for apps/editors development in AIR.
AS3ExporterAIR,
Exports both sources and generates embeds for you. Optional flash
player version to generate proper strings
like the matrix and AwayMatrix per flash project version.
ObjExporterAIR
Export next to obj file, the compagnon mtl file and the sources in
both jpg and png formats.
both have addOnSaveComplete and addOnSaveCanceled events
Happy coding :)
Fabrice