Last active
December 24, 2015 16:39
-
-
Save draconiansolo/6830059 to your computer and use it in GitHub Desktop.
Good old After effects style offset 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
set cut_paste_input [stack 0] | |
version 9.0 v3 | |
push $cut_paste_input | |
Group { | |
name AE_Offset | |
help "Good Old After Effects style offset.\nSlow as hell." | |
tile_color 0xff5f00ff | |
selected true | |
xpos -64 | |
ypos -250 | |
addUserKnob {20 User} | |
addUserKnob {41 offsetX T Expression3.offsetX} | |
addUserKnob {41 offsetY T Expression3.offsetY} | |
} | |
Input { | |
inputs 0 | |
name Input1 | |
xpos -497 | |
ypos -332 | |
} | |
Expression { | |
expr0 r((x+offsetX)%width,(y+offsetY)%height) | |
expr1 g((x+offsetX)%width,(y+offsetY)%height) | |
expr2 b((x+offsetX)%width,(y+offsetY)%height) | |
expr3 a((x+offsetX)%width,(y+offsetY)%height) | |
name Expression3 | |
selected true | |
xpos -496 | |
ypos -298 | |
addUserKnob {20 User} | |
addUserKnob {7 offsetX} | |
addUserKnob {7 offsetY} | |
} | |
Output { | |
name Output1 | |
xpos -497 | |
ypos -192 | |
} | |
end_group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment