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
#multiline py nuke's expression | |
b = nuke.nodes.Blur() | |
kb = b.knob('size') | |
multiline_python_expr = ''' | |
[python -execlocal { | |
def myFunction(x): | |
return x*2 | |
t = nuke.frame() | |
x = myFunction(t) | |
ret = x |
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
/* | |
Nuke blinkscript implementation of a simple image Transform operator. | |
Demonstrates pixel filter interpolation algorithms. | |
The following pixel filters are implemented: | |
0 - Blackman-Harris : Similar to cubic, but better performance in high frequencies | |
1 - Lanczos4 : 2x2 lanczos windowed sinc function | |
2 - Lanczos6 : 3x3 lanczos windowed sinc function | |
3 - Cubic : (Bicubic interpolation) - a=0.0, b=0.0 | |
4 - Mitchell : (Bicubic interpolation) - a=1/3, b=1/3 |
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 blending_mode_switcher(): | |
MODES = ['color-burn', 'color-dodge', 'difference', 'exclusion', 'from', 'hard-light', 'max', 'min', 'minus', 'multiply', 'over', 'overlay', 'plus', 'screen', 'soft-light'] # OR ['max', 'over'] | |
SUPPORTED_NODES = ['Roto', "RotoPaint"] | |
nodes = nuke.allNodes(recurseGroups = True) | |
active_nodes = [node for node in nodes if (node.shown() and node.Class() in SUPPORTED_NODES)] | |
for found in active_nodes: | |
try: | |
current_mode = found['toolbar_blending_mode'].value() | |
except: |
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 12.2 v4 | |
push $cut_paste_input | |
Text2 { | |
font_size_toolbar 100 | |
font_width_toolbar 100 | |
font_height_toolbar 100 | |
message "\[join \[lrange \[split \[file dirname \[value root.name] ] /] 0 2 ] / ]/render/\[join \[lrange \[split \[file tail \[value root.name] ] _ ] 0 1 ] _ ].%07d.dpx\n\n\[join \[lrange \[split \[file tail \[value root.name] ] _ ] 0 1 ] _ ].%07d.dpx" | |
old_message {{68 58 47 100 101 118 47 115 99 114 105 112 116 45 48 49 53 48 47 114 101 110 100 101 114 47 115 99 114 105 112 116 45 48 49 53 48 95 99 111 109 112 46 37 48 55 100 46 100 112 120 10 10 115 99 114 105 112 116 45 48 49 53 48 95 99 111 109 112 46 37 48 55 100 46 100 112 120} | |
} |
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 12.2 v4 | |
push $cut_paste_input | |
Text2 { | |
font_size_toolbar 100 | |
font_width_toolbar 100 | |
font_height_toolbar 100 | |
message "\[python \{str(int(nuke.thisNode()\['counter'].value())).zfill(int(nuke.thisNode()\['padding'].value()))\}]" | |
old_message {{48 49 49} | |
} |
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 12.2 v4 | |
push $cut_paste_input | |
Noise { | |
type turbulence | |
zoffset {{frame/10}} | |
octaves 24 | |
nyquist false | |
lacunarity 1 | |
gain 0.162 |
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
#! C:/Program Files/Nuke12.2v4/nuke-12.2.4.dll -nx | |
version 12.2 v4 | |
define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?> | |
<layout version="1.0"> | |
<window x="68" y="0" w="1849" h="1048" screen="0"> | |
<splitter orientation="1"> | |
<split size="40"/> | |
<dock id="" hideTitles="1" activePageId="Toolbar.1"> | |
<page id="Toolbar.1"/> | |
</dock> |
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] | |
push $cut_paste_input | |
Group { | |
name PlanarProjection | |
help "<b>Planar Projection</b>\nGenerates 2D coordinates for points in 3D space. Type in 3D point coordinates, or use vertex selection in 3D viewer and click set to pick average of selected points, or set points to set all four points at once. \n\nYou can connect node output to scene together with your pointcloud or geometry and see where your points are located in 3d space. Double click any of them to move it in 3d space like any traditional nuke transform control. \n\nA matrix transform is also generated to be used with RotoPaint, SplineWarp and GridWarp nodes. If you are using matrix in GridWarp, points have to be in clockwise order, pick them one by one! \n\nCommand set points doesn't respect selection order! \n\nCheck out the demo video on my website! Kudos to Ivan Busquets for help with matrix math. \n\n-- developed by Vit Sedlacek 2012 www.vitsedlacek.com \n\n-- Modified by Jed Smith to make calculation time nearly inst |
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
#! C:/Program Files/Nuke12.0v3/nuke-12.0.3.dll -nx | |
version 12.0 v3 | |
define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?> | |
<layout version="1.0"> | |
<window x="81" y="0" w="1836" h="1044" screen="0"> | |
<splitter orientation="1"> | |
<split size="43"/> | |
<dock id="" hideTitles="1" activePageId="Toolbar.1"> | |
<page id="Toolbar.1"/> | |
</dock> |
NewerOlder