Jump to content

scatter amount via vex


Follyx

Recommended Posts

is there a chance to control the scatter amount via a pointwrangle? There is just a checkbox for exporting the density attribute... hm... Or is there a hda outside where the npts is controllable by a pointwrangle?

Edited by Follyx
Link to comment
Share on other sites

The scatter SOP will use any attribute you want for density and you can write them to your geometry with VEX as per usual.

Attached is a demo scene - normally I'd call the attribute 'density' as the scatter SOP expects that but to show that you can use anything I called it 'scatter_density'

scatter_density.hiplc

  • Like 1
Link to comment
Share on other sites

thank you, so far, so good. But I dont have a chance to influence the npts parameter in the scatter Sop via vex, or? The Density per se is so vague. I prefer the exatly amount of scatterpoints. Or maybe I have the wrong approach in using the density. i

i.E: a box 10 x 10 x 5. I want exaclty maybe 540 scatterpoints. How could I organize that via the wrangle node with density?

Edited by Follyx
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...