how to find an attribute by ID in vop?
10530 9 0- luoqiulin
- Member
- 303 posts
- Joined: May 2007
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
yeah that's totally possible,
just plug your points into a sort SOP and sort by attribute (id).
Then you have two inputs for your VOP SOP, you plug the normal points into the first and the sorted points into the second.
In VOPs you create two import attribute nodes.
With the first you load the first inputs ID attribute which goes into the number input of the second import attribute. In here you import the desired attribute and now you can do whatever you want with it.
done
cheers,
Manu
just plug your points into a sort SOP and sort by attribute (id).
Then you have two inputs for your VOP SOP, you plug the normal points into the first and the sorted points into the second.
In VOPs you create two import attribute nodes.
With the first you load the first inputs ID attribute which goes into the number input of the second import attribute. In here you import the desired attribute and now you can do whatever you want with it.
done
cheers,
Manu
- luoqiulin
- Member
- 303 posts
- Joined: May 2007
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- michaelwang
- Member
- 9 posts
- Joined: Feb. 2008
- Offline
This is the feature I also like to have. But as far as I know, Houdini doesn't support id lookup directly. What you could do is to use attribTransfer or some point cloud technique to get it. Of cause you can use For loop inside VOP, but it might become slow if you have too many points.
The attached file is something we did before. Hope this is what you are looking for D
The attached file is something we did before. Hope this is what you are looking for D
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
Michael your file made me realize hat even though my technique is faster than yours, it only works if the number of points is the same. (or the number of id attributes)
You should send your file with an RFE to Side FX, they always have an open ear for suggestions. (Post it in the Beta forum if you have access).
Until then, if you got an uneven amount of points to compare, pcopen is the way to go
cheers,
Manu
You should send your file with an RFE to Side FX, they always have an open ear for suggestions. (Post it in the Beta forum if you have access).
Until then, if you got an uneven amount of points to compare, pcopen is the way to go
cheers,
Manu
- sanostol
- Member
- 575 posts
- Joined: Nov. 2005
- Offline
You can do it in vop, You just have to convert the ids into a vector first, and then you can do a pcopen with this as lookupposition, it;s a mean hack, but it works. it would be far better if there would be a integer lookup
I did a RFE some weeks ago on this , having a lookup by attribute would be very handy
I did a RFE some weeks ago on this , having a lookup by attribute would be very handy
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- luoqiulin
- Member
- 303 posts
- Joined: May 2007
- Offline
- michaelwang
- Member
- 9 posts
- Joined: Feb. 2008
- Offline
-
- Quick Links