How to group points of each iteration from metadata?

   3514   5   1
User Avatar
Member
11 posts
Joined: Sept. 2019
Offline
Ive been following this tutorial from Entagma:
http://www.entagma.com/fractal-ornaments/ [www.entagma.com]

However, I wanted to take things further and make it even more interesting. I would like to take specific actions for each iteration in the for-loop. I really tried hard to solve this but havent been able to figure out how to append all points of one specific iteration.

Lets say, for example, I only want to move the y-coordinate of all the points in the third iteration. How exactly would I go about doing this?

Please try to be clear in your answers, I am new to Houdini and have only done very little coding in Vex.

Thanks!
User Avatar
Member
11 posts
Joined: Sept. 2019
Offline
Anyone? I would really like to know if there is a way to make use of this. Thanks
User Avatar
Member
738 posts
Joined: Dec. 2006
Offline
Use a modulus. See the attached file. I am using this expression in a font SOP:

`if(detail(-1,"iteration", 0)%3=="2",1, 0)`

If you wanted to do this simply, you could put a switch SOP down, use the same code, above (without the back-ticks) and switch between two different sop chains. Of course you could also use the VEX detail expression in a wrangle or whatever.
Edited by mrCatfish - Nov. 7, 2019 08:53:45

Attachments:
everythird.hip (121.1 KB)

Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
11 posts
Joined: Sept. 2019
Offline
mrCatfish
Use a modulus. See the attached file. I am using this expression in a font SOP:

`if(detail(-1,"iteration", 0)%3=="2",1, 0)`

If you wanted to do this simply, you could put a switch SOP down, use the same code, above (without the back-ticks) and switch between two different sop chains. Of course you could also use the VEX detail expression in a wrangle or whatever.

I appreciate your help but Im not sure I understand what you are doing or how this can help to solve my problem.

Let me try to clarify my problem. The goal is to further modify the geometry by grouping all the points of only one iteration so I can modify only that one iteration. For example, lets say I want to extrude only the third iteration, not affecting any of the other iterations.

I apologize if I just understood your answer wrong, I just dont really know what to do with it or how it can help me.

Attachments:
ForLoops_Fractal.01.hiplc (190.5 KB)

User Avatar
Member
738 posts
Joined: Dec. 2006
Offline
Here is your file with every second iteration colored red.

Attachments:
ForLoops_Fractal.02.hipnc (180.9 KB)

Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
11 posts
Joined: Sept. 2019
Offline
Ahh thank you so much, now I get it. Thanks for the help, much appreciated!
  • Quick Links