Jump to content

odd / even expression


Iraklo

Recommended Posts

Hi,

 

I'm new in Houdini and I've got situation where I want to switch between 2 delete nodes according to copied number so that if CY is odd/even, switch to , otherwise 1.

 

How would that expression look like?

 

Here is my network

 

788ac941d392.png

Link to comment
Share on other sites

you want to use a modulo

even % 2 = 0

odd % 2 = 1

 

Thank you for reply

 

Unfortunately I'm not familiar to modulo. How can I use it? As I searched it is VAX node.

 

 

 

 

there is difference about when to use $CY or $PT, watch out for that.

Thank you

 

I'm trying to get something like this formation

 

dac8a80eeafa.jpg

 

 

out of this

 

 

79e893df3e50.jpg

 

 

 

so I think if I'll delete every odd numbered point in one copy and every even in another, I'll get what I want.

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...