I know it is possible for one to transfer points from object A to object B if they both have the same number of points.
It is also possible to transfer points from object A to object B if object A has more points than object B by using a wrapping formula which looks like this:
Object A
scatter1 (60)
attribute create "variable1" (integer, value = $PT % npoints("../scatter1"))
Object B
scatter (15)
attribute create "variable1" (integer, value = $PT)
Plug into Blendshape/Sequenceblend and presto.
What I would have liked to find out after this was how to "wrap" a smaller number of points onto a bigger number of points. A friend and I managed to make a formula to do this but only mathematically and I am not sure how to apply this principle to transferring points from one object to another in Houdini to which I am still quite new.
Here is the formula:
Object A - scatter (3) [A, B, C]
Object B - scatter (11)
floor($NPT Object A / $NPT Object * $NPT Object A + ($NPT Object B % $NPT Object A) * A
So here's what it would look like:
floor(3/11)*3 [A, B, C] + mod(11, 3)*A
So basically my question is: Would this formula be useful? I have tried to write these values into attribute create nodes but got stuck somewhere everytime.
Thanks!