Blacklisted_Guy Posted April 28, 2016 Share Posted April 28, 2016 Hello everyone, I'm working on something that'll make a kitchen in a house and need to select the middle sized primitive to do this. The file attached is what I have now but it doesn't seem to be working. tips are very welcome! selection.hipnc Quote Link to comment Share on other sites More sharing options...
mestela Posted April 28, 2016 Share Posted April 28, 2016 You could use a sort sop to sort the prims by @area, then a prim wrangle to keep the prim that is closest to @numprims / 2: if (@primnum != trunc(@numprim/2.0)) { removeprim(0,@primnum,1); } selection_mid.hipncFetching info... 1 Quote Link to comment Share on other sites More sharing options...
Blacklisted_Guy Posted April 28, 2016 Author Share Posted April 28, 2016 On 4/28/2016 at 3:22 PM, mestela said: You could use a sort sop to sort the prims by @area, then a prim wrangle to keep the prim that is closest to @numprims / 2: if (@primnum != trunc(@numprim/2.0)) { removeprim(0,@primnum,1); } selection_mid.hipncFetching info... Expand that did the job indeed! Thank you, had been stuck on that one. 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.