tricky COPs: Crop image by its alpha?
3633 10 2- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
- Enivob
- Member
- 2628 posts
- Joined: June 2008
- Offline
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
- Olaf Finkbeiner
- Member
- 323 posts
- Joined: Jan. 2015
- Offline
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
Doing in sop should be easy, but my (limited) experience with COPs tells me that it wouldn't be good for efficiency, especially if you deal with multiple high-res images; and it would also add a layer of instability to the system (more prone to crash).
Slightly related:
I need to feed a parameter of a COPs node with a specific pixel value from another node.
Is there any hscript function that I can use in parameter to retrieve the value of a pixel? I can't happen to find it.
I've found only a VEX function in the docs, but I don't really understand how and where to use it:
http://www.sidefx.com/docs/houdini/vex/cop_sample_suite.html [www.sidefx.com]
My convoluted workaround so far: I create a plane with the solid color of the pixel I want to read, export it to SOP and read the Cd attribute from Sop with a point() function. It works, but it's slightly imprecise and very unstable.
Slightly related:
I need to feed a parameter of a COPs node with a specific pixel value from another node.
Is there any hscript function that I can use in parameter to retrieve the value of a pixel? I can't happen to find it.
I've found only a VEX function in the docs, but I don't really understand how and where to use it:
http://www.sidefx.com/docs/houdini/vex/cop_sample_suite.html [www.sidefx.com]
My convoluted workaround so far: I create a plane with the solid color of the pixel I want to read, export it to SOP and read the Cd attribute from Sop with a point() function. It works, but it's slightly imprecise and very unstable.
Edited by Andr - Nov. 20, 2018 05:09:53
- tamte
- Member
- 8833 posts
- Joined: July 2007
- Offline
Andrhttp://www.sidefx.com/docs/houdini/expressions/pic.html [www.sidefx.com]
I need to feed a parameter of a COPs node with a specific pixel value from another node.
Is there any hscript function that I can use in parameter to retrieve the value of a pixel? I can't happen to find it.
or if you need more options
http://www.sidefx.com/docs/houdini/hom/hou/CopNode.html#getPixelByUV [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
- anon_user_40689665
- Member
- 648 posts
- Joined: July 2005
- Offline
- Enivob
- Member
- 2628 posts
- Joined: June 2008
- Offline
I don't think After Effects can do this either. You can pre-comp something but you must manually set the size of the pre-comp.
I could see it being possible in SOPs using an attribute from map, followed by a delete and a bound.
You could probably do this using ImageMagik and some PHP code too.
Why can't you use SOPs?
I could see it being possible in SOPs using an attribute from map, followed by a delete and a bound.
You could probably do this using ImageMagik and some PHP code too.
Why can't you use SOPs?
Edited by Enivob - Nov. 22, 2018 10:43:28
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
cpbthat would help to easily store some attributes and recall them.
really need a wrangle COP with an equivalent to detail (run once)… and writable crop & window sizes.
I've been trying to use the suggested pic() function, but I did something wrong apparently, it seems to be able to read it but Houdini becomes unresponsive in my system. Like it's being sucked into some computation loop. Have to kill Houdini every time.
Do you understand what is broken?
See attached .hip
Edited by Andr - Nov. 22, 2018 11:21:18
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
-
- Quick Links