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
| """ | |
| https://gist.github.com/artandmath/22d9bf83128c7a73cca3136506c4d559 | |
| Copy/paste utilities for Nuke that preserve and restore node input connections. | |
| When copying nodes, input connections are embedded as metadata in a hidden knob. | |
| When pasting, that metadata is read and the original connections are re-established | |
| (where possible), then the tracking knobs are removed. | |
| Menu integration is available in two styles: |
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 15.1 v1 | |
| BackdropNode { | |
| inputs 0 | |
| name BackdropNode10 | |
| tile_color 0x388e8e00 | |
| label "AutoMorph with bbox attention" | |
| note_font_size 25 | |
| selected true | |
| xpos 3762 |
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
| import nuke | |
| import re | |
| def bakeCurve(curve, first, last, inc): | |
| for f in range(first, last + 1, inc): | |
| curve.setKey(f, curve.evaluate(f)) | |
| curve.setExpression('curve') | |
| def getCurves(knob, views): | |
| curves = [] |
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
| # General guidelines | |
| Keep it simple | |
| Use as few lines as possible, but not at the sacrifice of readibility, safety and functionality. | |
| When planning a complex code change, always start with a plan of action and then ask me for approval on that plan. | |
| For simple changes, just make the code change but always think carefully and step-by-step about the change itself. |
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 13.0 v1 | |
| BackdropNode { | |
| inputs 0 | |
| name BackdropNode1 | |
| tile_color 0x444444ff | |
| label "resize type need to match for both\nCameraReformat and VFXReformat nodes\n(eg width, height, fit, fill)\n\nResize type none & distort are not yet implemented\n\n<l style=\"background-color:Green;\">If you see green and yellow in output image - all is golden</l>\n\n<l style=\"background-color:Red;\">If you see red in the output image - something ain't right.</lp>" | |
| note_font_size 15 | |
| note_font_color 0xffffffff | |
| selected true |