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]
3030 7 1- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- jsmack
- Member
- 8042 posts
- Joined: 9月 2011
- Online
- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- mestela
- Member
- 1802 posts
- Joined: 5月 2006
- Online
- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- yakymoto
- Member
- 8 posts
- Joined: 10月 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 - 2024年5月30日 09:48:27
-
- Quick Links