Maxscript says there is no 'Export' method in Max2Babylon.MaxScriptManager?

Hi everyone!

I’m trying to run the example Maxscript for Babylon.js, here is the link:

But after carefully updating the paths (as requested in the comments) and running the script, Maxscript reports this:

– Error occurred in anonymous codeblock; filename: C:\test.ms; position: 1251; line: 35
– Runtime error: No ‘Export’ method found which matched argument list
– MAXScript callstack:
– thread data: threadID:6436


– [stack level: 0]
– In top-level

The manual Export through the Babylon-menu works fine.

By the way, I’m using Max2018, and the dotNetObject works, the ‘showproperties param’ shows all the properties correctly.

What am I doing wrong? Thank you for any feedback!
Fernando

1 Like

Pinging the master of Exporters @Drigax

Strange. I’m not sure what may be happening off hand. I’ll try to test the sample script to see if it needs to be updated

Great, thank you Drigax!

And thanks for the ping Deltakosh :slight_smile:

Looks like not too long ago, we added another parameter to the MaxScriptManager.Export() functions that add a flag for enabling logging. This seems to have broken the sample script since it’s missing that parameter.

Here’s a fix, it should be available to the installer shortly:

1 Like

Awesome! Thanks so much Drigax for the quick fix, 5-star support! Works like a charm now.