Jose Garcia

bhb

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Divide>Bricker .. switch if ODDS/PAIRS Jan. 17, 2023, 5:05 a.m.

yEAH! Thats was the code.
Thanks!

Divide>Bricker .. switch if ODDS/PAIRS Jan. 16, 2023, 6:22 a.m.

Ok. Thanks.
Thats one part of the problem.
But I need the use of SWITCHER between odds and pairs.
... Or use VEX > Wrangle(primitives) to switch pair/odds from input.

Years ago I saw that code, now I lost it.

In documentation there is only a mention to ot in Arrays
int odd = nums; // { 1, 3, 5 }

Divide>Bricker .. switch if ODDS/PAIRS Jan. 10, 2023, 11:06 a.m.

Hello guys,

need help with a conditional inside switch node.

I have a wall , sometimes with odd number of prims (3,5,7..) and other times pairs numbers (2,4,6..).

Depending that number the switcher must select the correct one (0 or 1).

I need the wall divisions to be CENTERED in the wall. With de RESAMPLE node it seems imposible.

¿¿What is the correct code to apply??
should something like this:
if(nprims('../reverse5')==0, 0, 1)

Thanks in advance.