17 #ifndef AGXOSG_PYTHONSCRIPT_H
18 #define AGXOSG_PYTHONSCRIPT_H
25 #include <osgDB/ReadFile>
43 class ExampleApplication;
49 bool executePythonScriptImpl(const std::
string& filenameOrScript,
50 const std::
string& function,
51 agxSDK::Simulation *simulation,
52 agxOSG::ExampleApplication* application,
55 std::
string& errorMessage);
87 const std::
string& function,
88 agxSDK::Simulation *simulation,
89 agxOSG::ExampleApplication* application,
109 const std::
string& function,
110 agxSDK::Simulation *simulation,
111 agxOSG::ExampleApplication* application,
113 std::
string& errorMessage);
AGXOSG_EXPORT bool executePythonScript(const std::string &filename, const std::string &function, agxSDK::Simulation *simulation, agxOSG::ExampleApplication *application, osg::Group *root)
Execute a named function in a python script file.
AGXOSG_EXPORT void resetPythonScriptError()
Resets the script error to the empty string.
AGXOSG_EXPORT std::string readPythonScriptError()
Checks if there were any error messages when a lua script was executed.
AGXOSG_EXPORT bool executePythonScriptString(const std::string &script, const std::string &function, agxSDK::Simulation *simulation, agxOSG::ExampleApplication *application, osg::Group *root, std::string &errorMessage)
Execute a named function in a python script.
AGXCORE_EXPORT Component * root()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()