Search the Community
Showing results for tags 'attribute create'.
-
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!
- 4 replies
-
- attribute create
- point transfer
-
(and 1 more)
Tagged with:
-
Hello, this is a real Noob question and you can tell I'm not too familiar with how attributes work. The short version of my question is: how can i divide a circle into a number of circular arcs without creating a carve SOP for every arc? Long version: I want to create a number of circular arcs, you could imagine one arc from 12 o'clock to 2 o'clock, one arc from 2 to 5 o'clock and the last from 5 to 12 o'clock. Now I would need it to be procedural, because there will not always be three arcs around the circle, but variying numbers. It would also be nice to have them slightly separated. I tried by creating an attribute create with the values 0, 2, 5 and 12. Then I created 3 carve SOP's and copied those values and "paste copied relative reference" for the first and second u in the carve sops. It would be possible to create another attribute to tell how much separation there should be between the arcs. But it's not very procedural if the number of arcs changes. Any thoughts?