You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PrusaSlicer the postprocessing script can be provided as a bat file where the created gcode is passed as an argument. In Windows you can use the batch file `RunPyGcode.bat` that contains the python command.
18
+
In PrusaSlicer the postprocessing script can be provided as a bat file where the created gcode is passed as an argument. In Windows you can use the batch file `RunPyGcode.bat` that contains the command.
19
19
20
-
`python %~dp0\PyGcode.py -ext _py.gcode -o %1`
20
+
python "%~dp0\PyGcode.py" -ext _py.gcode -o %1`
21
+
pause`
21
22
22
-
where `%~dp0` is the path of the PyGcode.py file and `%1` is the path to the exported g-code file.
23
+
where `%~dp0` is the relative path to the PyGcode.py file and `%1` is the path to the exported g-code file.
23
24
24
25
## Including python code
25
26
@@ -41,9 +42,9 @@ A single line code starts with the following pattern:
41
42
42
43
;Python:
43
44
44
-
followed by a python command
45
+
followed by a python command ('<(' and ')>' replace square brackets)
45
46
46
-
;Python: temperatures = [a for a in range(195, 220, 5)]
47
+
;Python: temperatures = <(a for a in range(195, 220, 5))>
0 commit comments