1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using UnityEditor.Scripting.Python;
- using UnityEditor;
- using UnityEngine;
- public class PythonManager
- {
- //[MenuItem("Python/Create Heatmap")]
- //static void RunPythonFile()
- //{
- // string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap.py";
- // PythonRunner.RunFile(scriptPath);
- //}
- //[MenuItem("Python/Create Heatmap Multipe")]
- //static void RunPythonFileMultiple()
- //{
- // string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap_Multiple.py";
- // PythonRunner.RunFile(scriptPath);
- //}
-
- [MenuItem("Python/Create 3D Heatmap")]
- static void RunPythonFile3D()
- {
- string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap_3D.py";
- PythonRunner.RunFile(scriptPath);
- }
- [MenuItem("Python/Create 3D Heatmap Multiple")]
- static void RunPythonFile3DMultiple()
- {
- string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap_3D_Multiple.py";
- PythonRunner.RunFile(scriptPath);
- }
- //[MenuItem("Python/Open 3D Heatmap")]
- //static void RunPythonFileOpen3D()
- //{
- // string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/OpenHeatmap.py";
- // PythonRunner.RunFile(scriptPath);
- //}
- }
|