Zetha Posted August 17, 2017 Share Posted August 17, 2017 Hello, I made a grid with circles that change size depending on how close are to a point. I used a copy stamp SOP for it, but after reading in the Side FX site, they said that it is better to use the for each loop instead of the copy stamp.I cant figure how to achieve it. Also, I am trying to make a grid with circles that change density from left to right with a random effect. Thanks! Grid circle.hipnc Quote Link to comment Share on other sites More sharing options...
ikoon Posted August 18, 2017 Share Posted August 18, 2017 I did few edits to your file, you may learn from that, I hope. I used copytopoints and directly pscale to drive the circle scale. The Copy SOP node reads @pscale attribute, see the attached text. For the second example, I used the attribute wrangle, as I am not that good in Attribute VOP. But you may use the IF Vop and compare random values in the VOP too. if (@pscale * rand(@pscale) > 0.5) { @pscale = 1.0; } else { @pscale = 0.0; } I have also attached the For Each attitude, simple example, may not be universal solution (it doesn't solve normals, for examples). Grid circle - v2.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Zetha Posted August 18, 2017 Author Share Posted August 18, 2017 This is amazing thanks So, copy stamping is deprecated now? According to this: "Copy stamping is no longer the recommended way to create variations when copying to points. Using a For-each loop and attributes instead is more efficient, easier to set up, and easier and understand". Quote Link to comment Share on other sites More sharing options...
ikoon Posted August 21, 2017 Share Posted August 21, 2017 The old Copy Stamp is not compilable, so it is deprecated. That stamp() function cannot be compiled. Copy to points is compilable. Compiled SOPs can be multithreaded, so you use all the CPU cores you have. Tutorial is here. 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.