Python Forum
Noob question about python and Maxplus - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Noob question about python and Maxplus (/thread-3346.html)



Noob question about python and Maxplus - Strator - May-16-2017

Hi guys :)

I hope I'm the right place to ask my question! Sorry i'm VERY noob at this so be gentle :p

I try to do a tool in python. So I managed to create a window in python and a nice litle button.

What I want is when I press that said button it execute an already scripted .ms file and i'm not too sure about how to do it.

I did the Import MaxPlus

I have my function that work nicely

I see i can use :
EvalMAXScript
ExecuteMAXScript

Not sure the difference between this and how to use them (sorry again i'm a noob)

So my question is what I must write to run an .ms script into my python ?

    def My_Function(self):
        MaxPlus.Core.EvalMAXScript(what i need to type in here to run my .ms file)

thanks a lot ^_^