Created
July 25, 2017 08:16
-
-
Save kpprt/e9a31c503ebf88455b6171e8059fc2ba to your computer and use it in GitHub Desktop.
Simple Crop that works like the change canvas size function in Photoshop. Its intended to be used to crop mattepaintings that have been extended over the size of the frame. It can also be used to find out how much mattepainting outside the frame is needed due to camera movement. Afterwards the crop can be inverted to fit the frame again (the ext…
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 10.5 v4 | |
push $cut_paste_input | |
Group { | |
name CS_PSCrop1 | |
tile_color 0xa57aaaff | |
selected true | |
xpos -1690 | |
ypos -466 | |
addUserKnob {20 CS_PSCrop} | |
addUserKnob {3 left -STARTLINE} | |
left 100 | |
addUserKnob {3 right -STARTLINE} | |
right 100 | |
addUserKnob {3 bottom -STARTLINE} | |
bottom 100 | |
addUserKnob {3 top -STARTLINE} | |
top 100 | |
addUserKnob {6 invert -STARTLINE} | |
} | |
Input { | |
inputs 0 | |
name Input | |
xpos -40 | |
ypos -10 | |
} | |
Reformat { | |
type "to box" | |
box_width {{"input.width + (parent.left + parent.right) * (invert ? -1 : 1)"}} | |
box_height {{"input.height + (parent.bottom + parent.top) * (invert ? -1 : 1)"}} | |
box_fixed true | |
resize none | |
center false | |
filter Impulse | |
pbb true | |
name Reformat1 | |
xpos -40 | |
ypos 110 | |
} | |
Position { | |
translate {{"parent.left * (invert ? -1 : 1)"} {"parent.bottom * (invert ? -1 : 1)"}} | |
name Position1 | |
selected true | |
xpos -40 | |
ypos 182 | |
} | |
Output { | |
name Output | |
xpos -40 | |
ypos 302 | |
} | |
end_group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment