This simple Deadline event plugin calculates the total costs of a render and adds it to one of the job extra info keys. Costs are calculated based on a configurable average render hour price.
- Download this repository
- Move the
EnergyCostCalculator
folder to your Deadline installation custom events folder, which you can find at{deadline_install_root}/custom/events/
. - You will have to change the name of one of your Job Extra Info fields. You can configure this in the Deadline Monitor by going to
Tools > Configure Repository Options > Job Settings > Job Extra Properties
. - You can now configure the plugin by going to
Tools > Configure Events > EnergyCostCalculator
. Be sure to set the extra info field number to the field whose name you changed in the previous step. An example calculation for the render hour price: With a computer wattage average of 750 watts while rendering and an energy price of 0.35 EUR per kWh, the render hour price would be750 / 1000 * 0.35 = 0.2625
.
The event plugin should now work! I've also provided a simple script for setting the costs on already existing jobs.
While not enterily accurate, seeing the price skyrocketing on some unoptimized renders should certainly motivate artists to maybe spend a little more effort on optimization before they toss their render onto the farm :)