Gcode templates in Photonic3D are based on http://freemarker.org/ and these variables:
`now` = The current time and date as a java.util.Date.
`shutterOpen` = The state of whether the shutter should be open at the time this gcode executes.
`bulbHours` = The number of hours that your projector's bulb has been turned on. (Your projector must support this feature)
`CURSLICE` = Zero based index of the current slice being shown on your light source.
`LayerThickness` = The height in MM of the each slice.
`ZDir` = The direction that printer prints 1=Bottom_Up -1=Top_Down
`ZLiftRate` = The speed that the printer moves in mm per second.(This can be dynamic based on calculators)
`ZLiftDist` = The distance that the printer will move when performing a pear sequence.(This can be dynamic based on calculators)
`buildAreaMM` = The surface area of the platform that is covered by lighted pixels measured in MM square.
`LayerTime` = The amount of time to spend on exposing a layer with the light source measured in MM.(This can be dynamic based on calculators)
`FirstLayerTime` = The amount of time to spend exposing the “first” layers with the light source measured in MM.
`NumFirstLayers` = The number of “first” layers to be exposed with the “FirstLayerTime” variable above.
`SlideTiltVal` = A variable that means nothing to Photonic3D. (yet)
`buildPlatformXPixels` = The count of pixels from left to right.
`buildPlatformYPixels` = The count of pixels from top to bottom.
`pixelsPerMMX` = The number of pixels(from left to right) that are in a single MM as defined and calibrated with your light source on the printer controls page.
`pixelsPerMMY` = The number of pixels(from top to bottom) that are in a single MM as defined and calibrated with your light source on the printer controls page.
`hostProperties` = A variable that contains all of the settings that Photonic3D has been setup with from it's config.properties file.
`job` = A variable(org.area515.resinprinter.job.PrintJob) that contains all information related to the print job that this gcode is being executed.
`printer` = A variable(org.area515.resinprinter.printer.Printer) that contains all the information related to the printer and it's related configuration that this gcode is being executed.