[Closed] Import FBX from Windows
Hi Folks,
I’ve been wracking my brain on how to get started on a simple, simple process. Ideally, I want to create a C# windows form in Visual Studio that when I select an FBX from my harddrive and hit a custom “import” button, it will send that fbx to the currently opened instance of 3DSMax and import the fbx without the prompt.
I know max can do maxscript commands at the command line (importfile(blahblah)), but that opens a new instance.
I know I can execute maxscript commands in dot net with ManagedServices.dll, but I’ve no idea how to hook this up properly.
This part of a larger workflow of mine where Max is part of the process, so all the parts are going to be within the same c# windows application. If I have to manually load some script in max, that will break my pipeline.
Is there a way of sending a maxscript import command from a C# windows application? Are there any examples? Documentation is really thin online.
Thanks!
I am not sure on the specifics of how you would do it in c#, but I have written code in python to communicate with an existing max instance, sending it commands. It is based off of the sublime text send to 3ds max plugin:
Effectively it uses winapi to find the listener and send text to it.
Not a direct answer, but hopefully it can help you figure it out?
I’m pretty new to Python. I got the plugin working, but is there a function that sends a string to 3dsmax’s listener? This seems like an IDE plugin but I don’t know how I would be able to use it if I compile it to an executable.