teak421 Posted April 29, 2017 Share Posted April 29, 2017 Hi... New Houdini 16 user here...... I've created a randomized set of balls in the viewport with a scatter. But, when I do a copy to points, all of the balls are the same size... Is there a way to have random values (with a clamp or fit?) to alter the size of the balls? Tried putting a random on the uniform scale on the transform before going into the copytopoints, but...all are changed to the same value. I'm sure I am doing something silly...did some googling / documentation review, but I might not be asking the correct question. Thanks. teak Quote Link to comment Share on other sites More sharing options...
rich_lord Posted April 29, 2017 Share Posted April 29, 2017 Add a pscale attribute to the points before they go into the copy. This will be automatically recognized by the copy to points node. That will scale each copy by the value of pscale. You could use this expression in a point wrangle: @pscale = fit(rand(@ptnum), 0, 1, 0.3, 2) Where the last two numbers are the range of the pscale value 1 Quote Link to comment Share on other sites More sharing options...
teak421 Posted April 29, 2017 Author Share Posted April 29, 2017 Thank you for such a quick reply... In my geo spreadsheet on the attrwrangler I do see the random value of the pscale, but on the copytopoints, the pscale value is 1.0. Did I miss something? Thank you again for your help. teak Quote Link to comment Share on other sites More sharing options...
rich_lord Posted April 29, 2017 Share Posted April 29, 2017 (edited) Put a point wrangle node after your scatter and paste in the expression I gave you earlier. That should do it. If not, post your scene and I'll take a look. Edited April 29, 2017 by rich_lord Quote Link to comment Share on other sites More sharing options...
teak421 Posted April 29, 2017 Author Share Posted April 29, 2017 See attached... ConnectedBalls.hiplc Quote Link to comment Share on other sites More sharing options...
rich_lord Posted April 30, 2017 Share Posted April 30, 2017 You need to apply the pscale to the points, not the spheres. I just moved the attribute wrangle to the correct stream, made the numbers bigger in the fit function, and it does what you want. ConnectedBalls_fix.hiplc Quote Link to comment Share on other sites More sharing options...
teak421 Posted April 30, 2017 Author Share Posted April 30, 2017 Thank you for your help... Still getting the hang of Houdini! Take Care! teak 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.