Hello,
I have some points with a vector attribute, and I would like to transfer this attribute to other points that does not have it. Of course I know I can simply use the attribute transfer sop, but I am curious if it would be possible/easy to do in vex? I have looked around, but not really found any threads specifically on this topic.
Are there any vex-masters out there that can tell me if there is a way, and if yes, how?
Thanks,
Doug
Transferring attributes using vex?
6650 1 0-
- Dougie0047
- Member
- 106 posts
- Joined:
- Offline
-
- BabaJ
- Member
- 2163 posts
- Joined: Sept. 2015
- Offline
Yes you can.
Theres a number of ways you can do it.
If you have the nodes with the two seperate sets of points wired into the wrangle, then a combination (assuming the sets of points are of different amounts) of a conditional and use of @opinput_yourattribute can do the job.
Also, if it's not possible to ‘wire’ in the points to the wrangle you can use a conditional(for same reason as mentioned before) along with the point or pointattrib function.
Maybe post your hip file for a specific suggestion.
Edit: @opinput1_yourattribute - where the number 1 is the input connected. Anything connected to the first input(0) doesn't need the @opinput indicator to access the attributes connected to the first input, except for in cases with some functions called where @opinput0, geoself or even 0 can be used as the argument.
Theres a number of ways you can do it.
If you have the nodes with the two seperate sets of points wired into the wrangle, then a combination (assuming the sets of points are of different amounts) of a conditional and use of @opinput_yourattribute can do the job.
Also, if it's not possible to ‘wire’ in the points to the wrangle you can use a conditional(for same reason as mentioned before) along with the point or pointattrib function.
Maybe post your hip file for a specific suggestion.
Edit: @opinput1_yourattribute - where the number 1 is the input connected. Anything connected to the first input(0) doesn't need the @opinput indicator to access the attributes connected to the first input, except for in cases with some functions called where @opinput0, geoself or even 0 can be used as the argument.
Edited by BabaJ - May 19, 2017 08:16:57
-
- Quick Links

