Feedback

What's your question?

By: [ Editor ] Asked

FBX, Maya and Flint

hello,

I have been working on a script that exports FBX cameras out of Maya to Flint. it all works however the last part is meant to export it with keys but fails. The keys disappear. the process:

duplicate renderCamera and keys -> bakes the animation -> exports the camera

sounds simple! the odd thing is that if I run the export section of the script, the keys get exported?? One soultion I have tried is adding a confirm box to try to break the script up a bit but this hasn't worked. Anyone have any ideas?

    select ($camera+"_FBX"); 
FBXExport 
-s 
-FBXImportConstraints 
-v true 
-FBXImportUpAxis y 
-FBXExportScaleFactor 0.1 
-FBXExportFileVersion FBX201000 
-f (/"+$folderLoc+"/Renders/FROM_MAYA/"+$camera+"/"+$camera+".fbx");

Cheers for getting back to me, it is definately the snippet of code above that is not working.

I checked the statistics of a camera exported manually against the automated one and the main things I need to get transfered did not transfer.

File version: needs to be maya binary 2010 not 2011(6.1.0 - i think looking at the stats) File units: needs to be decimeters not centimeters

so, I must be missing something in the export code above??

Thanks Again

Add comment viewed 196 times Latest activity 11 months ago

NN comments
julian
-

I’m trying to have a look at this, but there are problems with the syntax. Can you edit the question again: paste the code in here, select it, then hit the code button (101010). And it would be helpful if you could reduce it down to the part that’s failing. Maybe just make a sphere, set a couple of keys and export. Also, how can it be tested to know whether it worked or not? Cheers.

julian
-

I’m trying to have a look at this, but there are problems with the syntax. Can you edit the question again: paste the code in here, select it, then hit the code button (101010). And it would be helpful if you could reduce it down to the part that’s failing. Maybe just make a sphere, set a couple of keys and export to \$TMPDIR. Also, how can it be tested to know whether it worked or not? Cheers.

iskanderm
-

Got a way round it but it isn’t a great fix. I created a preset, and then the code calls the preset when exporting:

FBXLoadExportPresetFile -f “Fbx.fbxexportpreset”; FBXExport -s -f “camera.fbx”;

will keep working on it till I get a better way to do it but it is working at the minute.

or Cancel

0 answers

Empty

No one has answered this question yet.

Be the first!