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
1904 3 0- jerry7
- Member
- 620 posts
- Joined: Nov. 2013
- Offline
- animatrix_
- Member
- 4495 posts
- Joined: Feb. 2012
- Offline
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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- jerry7
- Member
- 620 posts
- Joined: Nov. 2013
- Offline
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
- 8531 posts
- Joined: July 2007
- Online
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
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links