Hey guys…
So after some digging around I succeeded in sending commands from Python to MaxScript but I can’t wrap my head around returning information back to Python. This is the set up right now:
Max (runs on startup):
fn maxCommand input = (
try (
execute input;
return true;
) catch (
return false;
)
)
registerOLEInterface #(maxCommand);
Python:
import win32com.client
def messageMax(message):
maxCOM = win32com.client.Dispatch(“Max.Application.9”)
maxCOM._FlagAsMethod(“maxCommand”)
maxCOM.maxCommand(message)
Now I just need some way to send responses back to Max… You can laugh but please help.