Hi,everyone
I am confused on this question: how can i get a specified plane's data(e.g: “N,A”) in an operator that derived from COP2_MaskOP?
I used makeOutputAreaDependOnInputPlane(0, “N”,0, 0,input_areas,needed_areas) function inside getInputDendenciesForOutputArea(),but it only process “r g b” planes.
Also i noticed inputRegion(…const TIL_Plane * plane…) function,but i didn't found an example to show how to use this overload.
So, what is the right way to access a specified plane's data?
[HDK] How can i access cop plane's data?[SOLVED]
2449 2 0- liuxiaolin
- Member
- 53 posts
- Joined: 5月 2010
- Offline
- malexander
- スタッフ
- 5207 posts
- Joined: 7月 2005
- Offline
See the COP2_MultiImageWipe example in HFS/toolkit/samples/COP2 (where HFS is your Houdini install location). It gives an example of how to use that signature. You basically grab the TIL_Plane by name from the TIL_Sequence returned by inputInfo(N), where N is the input you're interested in, then pass that to inputRegion(N, context, plane, …).
- liuxiaolin
- Member
- 53 posts
- Joined: 5月 2010
- Offline
twod
See the COP2_MultiImageWipe example in HFS/toolkit/samples/COP2 (where HFS is your Houdini install location). It gives an example of how to use that signature. You basically grab the TIL_Plane by name from the TIL_Sequence returned by inputInfo(N), where N is the input you're interested in, then pass that to inputRegion(N, context, plane, …).
Seems like I have to use COP2_multibase? but it really solved my problem,
thanks a lot.
-
- Quick Links