Jump to content
pxBomber

Every second edge from a group

Recommended Posts

Hi,

I have a basic question. I want to create a group containing every second edge from already existing edge group. Is it possible?

Thanks.

Share this post


Link to post
Share on other sites

I think so...

If you run an Attribute Wrangle over the just the primitives in the first group with something like this in it, you should add every other primitive in the group to a new group. 

if(@primnum % 2 == 0)
    {
        setattrib(0, "primgroup", "secondEdgeGroup", @primnum, -1, 1, "set");
    }

2ndEdgeGroup.hip

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

×