This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt | |
# Camera parameters | |
focal = 25 #mm | |
fstop = 2.8 # f number | |
focus_distance = 5 # Unsure of unit? Probably mm, maybe metre? | |
# Circle of confusion diameter limit, as per | |
# http://en.wikipedia.org/wiki/Zeiss_formula (with modern 1500 constant) | |
filmback_width = 35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this code needs to be inserted into your SubmitNukeToDeadline script if you are using deadline's submission script. | |
###### INSERT AFTER THIS LINE, line 1308 in my file | |
#if groupBatch or dialog.separateJobs.value(): | |
# fileHandle.write(EncodeAsUTF16String("BatchName=%s\n" % batchName)) | |
# Populating environment variables from running Nuke: | |
# http://developer.shotgunsoftware.com/tk-core/platform.html#sgtk.platform.create_engine_launcher | |
current_engine = sgtk.platform.current_engine() | |
launcher = sgtk.platform.create_engine_launcher( |