I am probably just blind, but I can't figure out how to crop and reformat an image like I would in nuke.
In nuke I would reformat and crop to my format and have it scale by width and have a center crop.
In cops, all I can figure out is to crop from bottom or top.
COPS "reformat" options like nuke [SOLVED]
2877 7 1- AndreasWeidman
- Member
- 128 posts
- Joined: Feb. 2021
- Offline
- jsmack
- Member
- 8026 posts
- Joined: Sept. 2011
- Online
- AndreasWeidman
- Member
- 128 posts
- Joined: Feb. 2021
- Offline
- AndreasWeidman
- Member
- 128 posts
- Joined: Feb. 2021
- Offline
- mestela
- Member
- 1788 posts
- Joined: May 2006
- Online
- AndreasWeidman
- Member
- 128 posts
- Joined: Feb. 2021
- Offline
- AndreasWeidman
- Member
- 128 posts
- Joined: Feb. 2021
- Offline
- yakymoto
- Member
- 8 posts
- Joined: Oct. 2017
- Offline
Thanks everyone for the wonderful solutions! Here is my spin on it with HDA.
Click on 'Edit Parameter Interface' and add vector2 'ar' and float 'ratio'.
Horizontal Crop:
Vertical Crop:
Ratio:
Features:
Click on 'Edit Parameter Interface' and add vector2 'ar' and float 'ratio'.
Horizontal Crop:
if ( ch("ratio")<1, (res("../`opinput('.',0)`", D_XRES) - ch("hcrop2")) / 2, 0 ) if ( ch("ratio")>1, res("../`opinput('.',0)`", D_XRES), (res("../`opinput('.',0)`", D_YRES) / ch("ary")) * ch("arx") )
if ( ch("ratio")>1, (res("../`opinput('.',0)`", D_YRES) - ch("vcrop2")) / 2, 0 ) if ( ch("ratio")<1, res("../`opinput('.',0)`", D_YRES), (res("../`opinput('.',0)`", D_XRES) / ch("arx")) * ch("ary") )
res("../`opinput('.',0)`", D_XRES) / res("../`opinput('.',0)`", D_YRES)
Features:
- Procedural path and resolution of the input node
- Custom aspect ratio
- Supports vertical and horizontal aspect ratios
- Packed into HDA
Edited by yakymoto - May 30, 2024 09:48:27
-
- Quick Links