FBXIMP #noprompt doesn't work


#1

Using max 2015
line of code: importfile (filename) #noprompt using:FBXIMP

if I keep #noprompt maxscript just do nothing - max viewports just blinks. but if I remove #noprompt the maxscript opens import dialog and then import FBX properly.

I don’t need to see import dialog, how to get #noprompt to work?


#2

Works as it should in 3dsMax 2018/19/20.
Could this be just a bug?


#3

thanks, can you check my script within you max versions?

here’s script: _maxscript.zip (9.9 KB)
here’s an example: BAR_FACE_A_EyesMouth.mesh.fbx.zip (126.1 KB)

load maxscript into max, drop attached FBX onto drop spot of script ui

add: I have many issues with this script in FBX import preset part but only in max 2010+
It work just fine in my 2009 version in which I work all the time.


#4

After dragging I’m getting the message box:
-- Runtime error: pushSettings.fbxpst file not found.


#5

You need to have that file for some reason
pushSettings.fbxpst (17.0 KB)

put it here: C:\Users[USERNAME]\Documents\3dsmax\FBX\Presets\PushPop


#6

Viewport does blink but nothing else happens.
The scene remains empty.
Tested in 3dsMax 2018.

Also, FBX export/import shouldn’t require any additional preset files.
Options can be specified via scripting.


#7

if you commit #noprompt in my script you’ll get an import dialog but model will be loaded
that’s what I called “doesn’t work”
it does work in max 2009 though


#8

The problem is not in #noprompt.

FBX import settings file used in script (fbx_params.fbximportpreset) is set up the way which prevents importing all the FBX data.
And when you import FBX with an import dialog it simply overrides settings used in fbx_params.fbximportpreset and that’s why it works.

You should tweak the fbx_params.fbximportpreset in order for this to work.


#9

do you know how do I need to tweak it?


#10

Just compare it with the setting file that works and check for the difference.

Or alternatively, you can just save your working import settings and overwrite the fbx_params.fbximportpreset. That way is simpler, but it can also overwrite some other options which need to be set up in a specific way.


#11

I took Autodesk Media & Entertainment.fbximportpreset from max version and rename it to fbx_params.fbximportpreset and it sill doesn’t work, just blinks


#12

Then it must be fbx_params.fbximportpreset.
No idea what that file is but it apparently contains both Import and Export options.


#13

fbx_params.fbximportpreset - I created it by copying the original 3ds max preset and it only include the import part.
no idea why 2010+ version of max doesn’t work?

at first I thought that I need to use preset of modern max but that don’t work


#14

Sorry, I meant pushSettings.fbxpst
It contains both Import and Export settings.

I mean if it’s not the fbx_params.fbximportpres, then it’s pushSettings.fbxpst


#15

so I should take pushSettings.fbxpst and rename it to fbx_params.fbximportpres?


#16

I’ve fixed my script. not sure exactly how but that’s what I did:

  1. for modern max I use FBXImporterSetParam “PushSettings” instead of FBXImporterSetParam “PopSettings”
  2. also I’ve created 2 different FBXIMPORTPRESET files for old and new max versions + conditions for code to choose
  3. and finally I’ve add verification for pushSettings.fbxpst file

#17

Obviously, I won’t be checking out what exactly went wrong but I see that the problem was indeed in import setting.


#18

lastmartian, anyway thanks for pushing me to check import preset file — that was the key