Hi,
Is there any way to use scalar value for pcopen?
Such as pcopen(@OpInput1,“scalarAttr”,scalarVal,1,10); I tested ,but not worked.
Thanks!
pcopen with scalar attribute
2962 3 0-
- jerry7
- Member
- 680 posts
- Joined: 11月 2013
- オフライン
-
- animatrix_
- Member
- 5121 posts
- Joined: 2月 2012
- オフライン
Why do you want to pcopen a scalar attribute? Since point clouds are position based, you need vector values. You can read scalar attributes on these points using pcfilter though.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- jerry7
- Member
- 680 posts
- Joined: 11月 2013
- オフライン
pusat
Why do you want to pcopen a scalar attribute? Since point clouds are position based, you need vector values. You can read scalar attributes on these points using pcfilter though.
I think if can I do something with same scalar attribute. Such as get average point position for each class attribute after connectivity sop.
-
- tamte
- Member
- 9415 posts
- Joined: 7月 2007
- オフライン
just create vector variable and assign your scalar value to first component
so on your pointcloud you do:
v@lookup = set(i@class, 0, 0);
then you can look it up using the same or other attrib:
pcopen(0 ,“lookup”,v@lookup,1,10);
or
pcopen(0 ,“lookup”, set(i@id, 0, 0) ,1,10);
or whatever you want
however if you are just doing that to get all the points containing certain attrib value then you can use findattribval() function
so on your pointcloud you do:
v@lookup = set(i@class, 0, 0);
then you can look it up using the same or other attrib:
pcopen(0 ,“lookup”,v@lookup,1,10);
or
pcopen(0 ,“lookup”, set(i@id, 0, 0) ,1,10);
or whatever you want
however if you are just doing that to get all the points containing certain attrib value then you can use findattribval() function
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Quick Links

