Jump to content

Create Separate Primitive Groups Per Range (Resolved)


Recommended Posts

Hello!

 There are few specific objects on a model I was inspired by that I want to recreate in houdini procedrually (see pic).

Im stuck at the moment.  I need a way to generate a series of primitive groups  on a tube procedurally, and then apply the same poly extrude to each group.  Seems like a classic case of looping.  One group would be primitives 0-23, next would be 24 to 47, etc ,etc.   but I dont know how to generate this groups.   My thought is using a rule in the partition sop--but how would I set a rule such that it concatenates and generates pieces for every 23 primitives?  

This value (23) will change by the way, and is dependent on the number of rows in the circle sop I am sweeping along the curve (see pic).  This means I would also need this value 23 to be linked via channel to the circle sop within this procedure.  

Hopefully this isnt confusing.  

Please see attached.  

Many thanks!  

 

NOTE:  

As an aside  I did find a bizarre way around this--the setup is in the file.  I  realized that when Houdini does a poly extrusion, the new polys are added onto the geo before the original primitive (structurally speaking).   All this means is if you set your group to say primitives 0-22, and perform an extrusion, you can just duplicate this node multiple times and get a series of organized poly extrusions along the length of your object, without changing that 0-22 value.  

Bizarre, awesome, but still REALLY redundant, which is why id like to set up a loop structure.  

Thanks again 

 

tube_ref.jpg

tube.PNG

circle.PNG

structure.PNG

Modeling5_upl.hipnc

Edited by JKeil
Link to comment
Share on other sites

1 hour ago, Noobini said:

can change cols of tube...

partition.hipnc

Many thanks Noobini.  

I used your partition sop, then a name sop to transfer the groups to an attribute value.  Then I looped through this 'polyext' attribute.  

Ive attached the file and a pick in case it will help anybody else.  

 

Modeling5_v002.hipnc

result.PNG

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...