maxscript 2021 #noprompt not working

maxscript 2021 #noprompt not working

karimje728KV
Explorer Explorer
1,600 Views
2 Replies
Message 1 of 3

maxscript 2021 #noprompt not working

karimje728KV
Explorer
Explorer

Hello everyone,
I wrote a script that exports geometry to separate fbx files with the comand #nopromt. Unfortunately, it seems not working fine.

exportFile (ChosenFolder + "\\" + MeshFileName + ".fbx" ) selectedOnly:true #noPrompt

can anyone help?

the script is fine, it does it's job. I do get the geometry in seperate files, but it keeps on poping up the fbx export windows and I have to click enter for each geo.

 

if anyone has any idea, why could this be happening, please let me know.

 

best regards,
Karim

0 Likes
Accepted solutions (1)
1,601 Views
2 Replies
Replies (2)
Message 2 of 3

ads_royje
Alumni
Alumni
Accepted solution

Hi @karimje728KV ,

sorry you're having this problem.
the command order is important

exportFile <filename_string> [#noPrompt] [selectedOnly:<boolean>] [using:<maxclass>] 


Does it work as you expect if you change the ordering ?
 

exportFile (ChosenFolder + "\\" + MeshFileName + ".fbx" ) #noPrompt selectedOnly:true using:FBXEXP


Regards,

 

0 Likes
Message 3 of 3

karimje728KV
Explorer
Explorer

rediculous!
I've never had an order issue!

thanks @ads_royje