How to get return values from the MaxScript command, "python.Execute"

How to get return values from the MaxScript command, "python.Execute"

Anonymous
Not applicable
1,738 Views
2 Replies
Message 1 of 3

How to get return values from the MaxScript command, "python.Execute"

Anonymous
Not applicable

I'm updating a pipeline from using 3dsMax2014 to using 3dsMax2019.

 

The previous pipeline used DuberPython. This is now replaced using the
"python.Execute" maxScript command.  I have not found any documentation on RETURN VALUES from that command.


Current workaround - writing results from python to the filesystem, then
reading them into the maxScript calling-function.

 

I would really love to not have to read/write to the filesystem.

Thanks in advance for all input!

 

 

0 Likes
Accepted solutions (1)
1,739 Views
2 Replies
Replies (2)
Message 2 of 3

Swordslayer
Advisor
Advisor
Accepted solution

When you want that, it might be better to instead say myModule = python.import "myModulePath" and then call myModule methods directly from MAXScript.

0 Likes
Message 3 of 3

Anonymous
Not applicable
Hey Swordslayer,

I will definitely do that. Thanks!

(I'm new to Max/MaxScript and the codebase I'm working with was for
max2014... I just wanted to replace duberPython and found that
python.Execute ALMOST fit the patterns of duberPython useage)

Thanks again.
0 Likes