Jump to content

Copy to Points


Recommended Posts

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

 

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...