Homer0 Posted November 15, 2016 Share Posted November 15, 2016 Hi all, i've a question about the Copy SOP. Let's say i've a simple Box, plugged into a Copy with a curve as second input. It copy the box along the curve points, and i take care of the orientation with a Polyframe. Now i want the Box to have an incremental rotation on the Z axis every copy. Without a second input, i could manage that with the Rotate of the copy keeping Transform Cumulative turned on; but with a second input plugged in, it doesn't work... any suggestion? Thanks in advance ^^ Quote Link to comment Share on other sites More sharing options...
Atom Posted November 15, 2016 Share Posted November 15, 2016 (edited) That is what stamping is for. On input 2 add an attribute wrangle which runs over the points of the curve. Create a new attribute called my_rotation for each point. Then stamp that information into a transform that you also add to input 1. Edited November 15, 2016 by Atom 1 Quote Link to comment Share on other sites More sharing options...
Homer0 Posted November 15, 2016 Author Share Posted November 15, 2016 wow, thanks but at the current state of my houdini learning this sound way too complicate. Quote Link to comment Share on other sites More sharing options...
Homer0 Posted November 15, 2016 Author Share Posted November 15, 2016 (edited) alright, so far i got it how to stamp the attribute. I created my_rotation, gave it a 20 as value and then, into a transform added on the first input, i wrote in the Rotate Z: stamp("../copy1","my_rotation", 0) The attribute works, but it rotate every instance with the same value, guess it's the Attribute Wrangle part missing, which i suppose i need to tell that every point in the curve have to get a differente value.... EDIT: I finally did it. Since i wanted every instance rotated by 15 degrees, i just put 15*$PT as Value of the Stamp attribute. I probably didn't make myself clear and @Atom thought i needed something more complex ^^ Edited November 15, 2016 by Homer0 1 Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 18, 2016 Share Posted November 18, 2016 if at some point performance becomes an issue (if you are dealing with > millions of points) the fastest approach would be by pre-modifying the normals on the right input. This does require a bit of vector math to get right though. Quote Link to comment Share on other sites More sharing options...
Werner Posted November 24, 2016 Share Posted November 24, 2016 (edited) Use Attribute Randomize on the second input. This will create any attribute (like pscale, orient, v, Cd) to the incoming points before the copy actually happens. Edited November 24, 2016 by Werner Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.