Follyx Posted June 18, 2020 Share Posted June 18, 2020 (edited) 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 June 18, 2020 by Follyx Quote Link to comment Share on other sites More sharing options...
j00ey Posted June 18, 2020 Share Posted June 18, 2020 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 1 Quote Link to comment Share on other sites More sharing options...
Follyx Posted June 18, 2020 Author Share Posted June 18, 2020 (edited) 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 June 18, 2020 by Follyx Quote Link to comment Share on other sites More sharing options...
anim Posted June 18, 2020 Share Posted June 18, 2020 not via VEX directly, but you can reference attribute values in parameters using expressions https://www.sidefx.com/forum/topic/73107/#post-309128 Quote Link to comment Share on other sites More sharing options...
j00ey Posted June 18, 2020 Share Posted June 18, 2020 eg like this control_scatter_pts.hiplc Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted June 18, 2020 Share Posted June 18, 2020 (edited) Isn't this what the "Count per Primitive" mode of the Scatter SOP is for? scatter_count_per_prim.hipnc Edited June 18, 2020 by dleonhardt 1 Quote Link to comment Share on other sites More sharing options...
j00ey Posted June 18, 2020 Share Posted June 18, 2020 Yes! Had a brain fade there... Quote Link to comment Share on other sites More sharing options...
Follyx Posted June 22, 2020 Author Share Posted June 22, 2020 ok, thank you to all and sorry for the late reply... 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.