我们想从ZBrush中调用一个Python应用程序,它具有非常有限的API。一个选项是FileExecute命令,它从Windows DLL调用方法,如下所示:
[FileExecute, PluginTest.dll, ShowMsg, "Hi There"]
# Executes the "ShowMsg" routine in "PluginTest.dll" passing it the string "Hi There"
我们可以使用Windows Python安装中包含的DLL来调用任意Python脚本吗?
[FileExecute, PythonWindows.dll, RunScript, "example.py"]
# Runs the "example.py" script (found on the PYTHONPATH)
如果没有,你会如何创建这样的DLL?