hi,
I add points in solver sop ,but there are some duplication point number. Is it a bug?
Thanks!
Add point in Solver Sop, Bug?
1849 1 1- jerry7
- Member
- 626 posts
- Joined: Nov. 2013
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
No, that's not a bug. The number returned by addpoint() is more of a “temporary” id, and not the final id. The addpoint VOP mentions this:
https://www.sidefx.com/docs/houdini14.0/nodes/vop/addpoint [sidefx.com]
You can use the returned id with setpointattrib, but it shouldn't be stored beyond that vex execution.
Maybe one way to workaround this is to only mark which points are new, then use a separate wrangle to get and set the new point id? See the example hip file.
https://www.sidefx.com/docs/houdini14.0/nodes/vop/addpoint [sidefx.com]
You can use the returned id with setpointattrib, but it shouldn't be stored beyond that vex execution.
Maybe one way to workaround this is to only mark which points are new, then use a separate wrangle to get and set the new point id? See the example hip file.
Andrew / アンドリュー
-
- Quick Links