Follyx Posted December 9, 2015 Share Posted December 9, 2015 why this will not work: a scatter sop and a pointwrangle with: if ( rand(@ptnum) > ch('threshold') ) {removepoint(,@ptnum);} Hm, still dont see points, neither with a low nor a high threshold value. deforming_active.hip Quote Link to comment Share on other sites More sharing options...
sekow Posted December 9, 2015 Share Posted December 9, 2015 (edited) no idea, but when you copy that code above into a fresh pointwrangle it works remember rand(@ptnum) gives you value between 0 and 1 Edited December 9, 2015 by sekow Quote Link to comment Share on other sites More sharing options...
tjeeds Posted December 9, 2015 Share Posted December 9, 2015 You changed your Evaluation Node Path to "../scatter1", this means that any ch() references you make will look to that node instead of the wrangle node itself. So it's looking for a parameter called "threshold" on the scatter, which doesn't exist so it returns 0, thereby deleting all of your points. Quote Link to comment Share on other sites More sharing options...
varun5895 Posted December 14, 2021 Share Posted December 14, 2021 why this will not work: a scatter sop and a pointwrangle with: if ( rand(@ptnum) > ch('threshold') ) { removepoint(,@ptnum); } This worked for me after inputting it after scatter node , you need to check the Geometry spreadsheet and see the values to insert before removepoint(??,@ptnum); For me it was -0.5 just an average and then played with the threshold . It worked ! 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.