Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX Plug-ins Import-Export Discussions / Still can't set fbxexport parameters using maxscript???
  RSS 2.0 ATOM  

Still can't set fbxexport parameters using maxscript???
Rate this thread
 
61961
 
Permlink of this thread  
avatar
  • Location: Los Angeles CA
  • Total Posts: 99
  • Joined: 16 May 2008 02:40 AM

Hi,

Is there still a problem accessing the fbxexporter parameters using maxscript? I’m not able to set the export parameters..

pluginManager.loadClass FBXEXP
FBXExporterSetParam “Animation” true
exportFile (SavePath) selectedOnly:True using:FBXEXP

This doesn’t work.

thanks
Brian



MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...

Replies: 1
/img/forum/dark/default_avatar.png

Hello Brian,

There have been some developements.  Max will now automatically load the plug-in if it sees it in the install paths.  With that in mind, you don’t need so say “pluginManager.loadClass FBXEXP”.

You only have to state the following. ( Notice that in the second line of code there is a #noPrompt, this has to be there to avoid the Preferences UI popping up for every shape you export.)

FBXExporterSetParam “Animation” true
exportFile (SavePath) #noPrompt selectedOnly:True using:FBXEXP

hope this helps
Cheers!
Carlos

Author: CarlosC

Replied: 28 November 2011 06:37 AM  
avatar

Hey Carlo,

Thanks, but that doesn’t help. I already knew about “#noPrompt”. Additionally, you still can’t set the export options: ‘FBXExporterSetParam “Animation” true’ doesn’t work.



MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...

Replies: 1
/img/forum/dark/default_avatar.png

Hi again brian1,

Okay, let’s try something else.  The following steps should eliminate the plug-in as the problem.

First, let’s double check that the plug-in is loaded correctly (you may know how to do this already, but for argument’s sake, I’m describing the steps just to make sure we’re on the same page)

1) Start Max
2) Go to Customize>Plug-in Manager
3) Look for the fbxmax.dlu entry
4) Make the loaded status is green

If the status is not green:

5) Manually load the plug-in
6) Execute FBXExporterGetParam “Animation”

At this point you will get either a True or False result.  If you don’t, please let us know what version of the plug-in you are using.  If you do get a True or False result, this is proof that the plug-in is not the problem.  In this case, it would seem that your batch process is not loading the plug-in before you call the exposed functions even though Max should have loaded the plug-in automatically.

If this is the case, we’d have to refer the problem to the Max team to see why this is happening.  Let’s see what your results are and we’ll go from there.

Cheers!
Carlos

Author: CarlosC

Replied: 09 December 2011 01:05 AM  
avatar

Hey Carlos,

Yes, fbxmax.dlu is already green in the plugin manager.

This is what I get in the listener window:

FBXExporterGetParam "Animation"
true

I think it is a bug that autodesk still hasn’t fixed. I see other posts where people have the same problem…

thanks tho,
Brian



MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...

Replies: 1
/img/forum/dark/default_avatar.png

I suggest you post this issue in the Max forum, explaining your problem telling them about the tests that we’ve run here.  Since we now know the plug-in is not the problem, they may have a better idea on where to start when looking into Max.

Regards,
Carlos

Author: CarlosC

Replied: 13 December 2011 02:59 AM