Jump to content
Sign in to follow this  
kiryha

Primitive selection pattern

Recommended Posts

I have group expression which selects 7 primitives in stripe and skips one.

primSelectionPattern.thumb.PNG.387200a991767b49189de3edc63ded90.PNG

How can I modify the amount of skipped primitives (if I need select 7,  skip 2, for example)? 

primSelectionPattern_001.hipnc

Share this post


Link to post
Share on other sites
Posted (edited)

surely group by range ???

so in your first post: 7, skip 2 mean select 7 out of 9...so go on...use a group by range and plug the values in...you can even use Offset

(yeah ok, so it's strictly not scripting...but why not take the easiest way out ?)

ahhh...wth...I'll chuck in a wrangle here...

primSelectionPattern_wrangle.hipnc

Edited by Noobini
  • Like 1

Share this post


Link to post
Share on other sites

Exactly what I was looking for! Long way of learning nodes in Houdini through the attempts to solve everything with VEX.

Thanks again :)

Share this post


Link to post
Share on other sites

i updated me post to include a wrangle..you might be interested...

  • Like 1

Share this post


Link to post
Share on other sites

That's fantastic!
You can write the group name in Output Selection Group field of Bindings tab to highlight the group in wrangle.

  • Like 1

Share this post


Link to post
Share on other sites

oh....never knew that....nice tip, thanks !!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×