This file contains hidden or 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
def _find_ext_nodes(extension, ignore_classes=None): | |
# type: (str, Optional[List[str]]) -> Dict[str, nuke.Node] | |
"""Find nodes which are not part of default Nuke | |
""" | |
if ignore_classes is None: | |
ignore_classes = [] | |
by_class = {} # type: Dict[str, nuke.Node] | |
for n in nuke.allNodes(recurseGroups=True): |
This file contains hidden or 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
diff --git a/pytoshop/layers.py b/pytoshop/layers.py | |
index d4bef85..a6577c4 100755 | |
--- a/pytoshop/layers.py | |
+++ b/pytoshop/layers.py | |
@@ -642,10 +642,14 @@ class LayerRecord(object): | |
visible=True, # type: bool | |
pixel_data_irrelevant=False, # type: bool | |
name='', # type: unicode | |
- channels={}, # type: Dict[int, ChannelImageData] | |
- blocks=[], # type: List[tagged_block.TaggedBlock] |
This file contains hidden or 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
set cut_paste_input [stack 0] | |
version 8.0 v6 | |
push $cut_paste_input | |
Keyer { | |
operation "luminance key" | |
range {0.09247749808 1 1 1} | |
name Keyer1 | |
selected true | |
xpos -398 | |
ypos -86 |
This file contains hidden or 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
""" | |
RGB to XYZ gamut-remapping matrix calculation. | |
Main function is rgb_to_xyz_matrix. | |
""" | |
class MatrixError(Exception): | |
pass | |
class NonInvertableMatrix(MatrixError): |
This file contains hidden or 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
def root_settings_to_string(root): | |
"""Serialise the project settings. Used when writing the selected | |
nodes (otherwise things like the frame range would be lost) | |
""" | |
# Write non-default settings, in .nk script format. Also write | |
# user-knob definitons to avoid errors like NUKE-256 | |
rootstring = root.writeKnobs(nuke.TO_SCRIPT | nuke.WRITE_USER_KNOB_DEFS) | |
# TODO: Why doesn't writeKnobs write [first/last]_frame? Also |
This file contains hidden or 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
INFO:__main__:Found challenge 1, http://app.strava.com/challenges/1 (Rapha Festive 500) | |
INFO:__main__:Found challenge 2, http://app.strava.com/challenges/2 (Strava Ride Base Mile Blast) | |
INFO:__main__:Found challenge 3, http://app.strava.com/challenges/3 (Strava Run Base Mile Blast) | |
DEBUG:__main__:Challenge 4 does not exist | |
INFO:__main__:Found challenge 5, http://app.strava.com/challenges/5 (A Classic Challenge from Specialized) | |
DEBUG:__main__:Challenge 6 does not exist | |
DEBUG:__main__:Challenge 7 does not exist | |
DEBUG:__main__:Challenge 8 does not exist | |
DEBUG:__main__:Challenge 9 does not exist | |
INFO:__main__:Found challenge 10, http://app.strava.com/challenges/10 (GU 100,000 Mile Challenge) |
This file contains hidden or 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
set cut_paste_input [stack 0] | |
version 7.0 v5 | |
push $cut_paste_input | |
UvLensDistort8 { | |
inputs 0 | |
name UvLensDistort8_1 | |
label "Shot: \[lindex \[split \[value file] \"/\"] 4]\nElem: \[lindex \[split \[value file] \"/\"] 6]\n(\[lindex \[split \[value file] \"/\"] 7] analysis \[lindex \[split \[value file] \"/\"] 9])" | |
selected true | |
xpos -166 | |
ypos -26 |
This file contains hidden or 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
Timestamp | kgf | Nm | |
---|---|---|---|
2014-06-26 19:21:25.025 | |||
46441 | 7.3 | 12.2 | |
46473 | 7.5 | 12.6 | |
46505 | 7.9 | 13.1 | |
46537 | -1.7 | -2.8 | |
46569 | -2.2 | -3.7 | |
46601 | -3.5 | -5.8 | |
46633 | -4.0 | -6.7 | |
46665 | -4.1 | -6.8 |
This file contains hidden or 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
function process(canvas, func) { | |
function setPixel(imageData, x, y, rgba) { | |
var index = (x + y * imageData.width) * 4; | |
for (var i = 0; i < 4; i++) { | |
imageData.data[index + i] = rgba[i] * 255; | |
} | |
} | |
var ctx = canvas.getContext("2d"); |
NewerOlder