Last active
April 18, 2018 08:33
-
-
Save kpprt/cd946171233e6c8ff6431cea4e64dcd4 to your computer and use it in GitHub Desktop.
A more versatile, parametric and feathered Rectangle for Nuke.
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
Group { | |
name CS_AdvancedRect1 | |
addUserKnob {20 CS_AdvancedRect} | |
addUserKnob {19 color} | |
color 1 | |
addUserKnob {6 color_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} | |
addUserKnob {15 from} | |
from {480 270 1440 810} | |
addUserKnob {15 to} | |
to {0 0 1920 1080} | |
addUserKnob {7 roundness} | |
roundness 0.2 | |
addUserKnob {7 lerp} | |
lerp 1 | |
} | |
Input { | |
inputs 0 | |
name Input | |
xpos 510 | |
ypos -394 | |
} | |
Roto { | |
curves {{{v x3f99999a} | |
{f 0} | |
{n | |
{layer Root | |
{f 2097664} | |
{t x44700000 x44070000} | |
{a pt1x 0 pt1y 0 pt2x 0 pt2y 0 pt3x 0 pt3y 0 pt4x 0 pt4y 0 ptex00 0 ptex01 0 ptex02 0 ptex03 0 ptex10 0 ptex11 0 ptex12 0 ptex13 0 ptex20 0 ptex21 0 ptex22 0 ptex23 0 ptex30 0 ptex31 0 ptex32 0 ptex33 0 ptof1x 0 ptof1y 0 ptof2x 0 ptof2y 0 ptof3x 0 ptof3y 0 ptof4x 0 ptof4y 0 pterr 0 ptrefset 0 ptmot x40800000 ptref 0} | |
{curvegroup Rectangle1 512 bezier | |
{{cc | |
{f 8192} | |
{p | |
{{=(parent.to.x-parent.from.x)*parent.roundness*parent.lerp xc3700001} | |
{=((parent.to.t-parent.to.y)/2-parent.from.t)*parent.roundness*parent.lerp xc3070000}} | |
{{=parent.from.x x43f00001} | |
{=parent.from.t x444a8000}} | |
{{=((parent.to.r-parent.to.x)/2+parent.to.x-parent.from.x)*parent.roundness*parent.lerp x436ffffe} | |
{=(parent.to.t-parent.from.t)*parent.roundness*parent.lerp x43070000}} | |
{{=((parent.to.r-parent.to.x)/2+parent.to.x-parent.from.r)*parent.roundness*parent.lerp xc3700000} | |
{=(parent.to.t-parent.from.t)*parent.roundness*parent.lerp x43070000}} | |
{{=parent.from.r x44b40000} | |
{=parent.from.t x444a8000}} | |
{{=(parent.to.r-parent.from.r)*parent.roundness*parent.lerp x43700008} | |
{=((parent.to.t-parent.to.y)/2-parent.from.t)*parent.roundness*parent.lerp xc3070000}} | |
{{=(parent.to.r-parent.from.r)*parent.roundness*parent.lerp x43700008} | |
{=((parent.to.t-parent.to.y)/2-parent.from.y)*parent.roundness*parent.lerp x43070000}} | |
{{=parent.from.r x44b40000} | |
{=parent.from.y x43870000}} | |
{{=((parent.to.r-parent.to.x)/2+parent.to.x-parent.from.r)*parent.roundness*parent.lerp xc3700000} | |
{=(parent.to.y-parent.from.y)*parent.roundness*parent.lerp xc3070000}} | |
{{=((parent.to.r-parent.to.x)/2+parent.to.x-parent.from.x)*parent.roundness*parent.lerp x436ffffe} | |
{=(parent.to.y-parent.from.y)*parent.roundness*parent.lerp xc3070000}} | |
{{=parent.from.x x43f00001} | |
{=parent.from.y x43870000}} | |
{{=(parent.to.x-parent.from.x)*parent.roundness*parent.lerp xc3700001} | |
{=((parent.to.t-parent.to.y)/2-parent.from.y)*parent.roundness*parent.lerp x43070000}}}} | |
{cc | |
{f 8192} | |
{p | |
{} | |
{{=(parent.to.x-parent.from.x)*parent.lerp xc3f00001} | |
{=(parent.to.t-parent.from.t)*parent.lerp x43870000}} | |
{} | |
{} | |
{{=(parent.to.r-parent.from.r)*parent.lerp x43f00004} | |
{=(parent.to.t-parent.from.t)*parent.lerp x43870000}} | |
{} | |
{} | |
{{=(parent.to.r-parent.from.r)*parent.lerp x43f00004} | |
{=(parent.to.y-parent.from.y)*parent.lerp xc3870000}} | |
{} | |
{} | |
{{=(parent.to.x-parent.from.x)*parent.lerp xc3f00001} | |
{=(parent.to.y-parent.from.y)*parent.lerp xc3870000}} | |
{}}}} | |
{t 0} | |
{a osw x41200000 osf 0 str 1 spx x44700000 spy x44070000 sb 1 ltn x44814000 ltm x44814000 tt x41000000 a | |
{=parent.color 1} b | |
{=parent.color 1} g | |
{=parent.color 1} r | |
{=parent.color 1}}}}}}} | |
toolbox {selectAll { | |
{ selectAll str 1 ssx 1 ssy 1 sf 1 } | |
{ createBezier str 1 ssx 1 ssy 1 sf 1 sb 1 tt 4 } | |
{ createBezierCusped str 1 ssx 1 ssy 1 sf 1 sb 1 tt 5 } | |
{ createBSpline str 1 ssx 1 ssy 1 sf 1 sb 1 tt 6 } | |
{ createEllipse str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ createRectangle str 1 ssx 1 ssy 1 sf 1 sb 1 tt 8 } | |
{ createRectangleCusped str 1 ssx 1 ssy 1 sf 1 sb 1 tt 9 } | |
{ brush str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ eraser src 2 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ clone src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ reveal src 3 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ dodge src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ burn src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ blur src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ sharpen src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
{ smear src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } | |
} } | |
toolbar_autokey false | |
toolbar_brush_hardness 0.200000003 | |
toolbar_source_transform_scale {1 1} | |
toolbar_source_transform_center {960 540} | |
color {{parent.color 1} {parent.color} {parent.color} {parent.color}} | |
colorOverlay {0 0 0 0} | |
lifetime_type "all frames" | |
lifetime_start 1034 | |
lifetime_end 1034 | |
motionblur_shutter_offset_type centred | |
source_black_outside true | |
name Roto1 | |
xpos 510 | |
ypos -322 | |
} | |
Output { | |
name Output1 | |
xpos 510 | |
ypos -250 | |
} | |
end_group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment