Run Python on MaxScripts

1.5k views Asked by At

I want to run Python on 3Dsmax 2014. I saw the website and know 3Dsmax 2014 can use the Python script . But when I try with example from the website, it does not work. Maybe lack of some software or anything else.

I used this code in "MAXscript Listener":

python.Execute "print 'hello'"

And result was:

-- Unknown property: "execute" in undefined

So , someone can guide me how to use the Execute ? Thanks everyone !

2

There are 2 answers

0
Swordslayer On

You would need the Extension 1 (Subscription Advantage Pack) to be able to run python scripts like that.

0
Wolfgang Haak On

You need to load python first. Try this:

python.init()
python.execute "print 'Hello World'"