[HDK] How can i access cop plane's data?[SOLVED]

   2209   2   0
User Avatar
Member
53 posts
Joined: May 2010
Offline
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?
Edited by - Nov. 19, 2015 02:00:18
User Avatar
Staff
5161 posts
Joined: July 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, …).
User Avatar
Member
53 posts
Joined: May 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