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.
Divide>Bricker .. switch if ODDS/PAIRS
1548 4 1- bhb
- Member
- 67 posts
- Joined: 4月 2017
- Offline
- Jikian
- Member
- 144 posts
- Joined: 8月 2012
- Online
- bhb
- Member
- 67 posts
- Joined: 4月 2017
- Offline
- tamte
- Member
- 8771 posts
- Joined: 7月 2007
- Offline
bhbilbaoSounds like you want
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).
nprims('../reverse5')%2
You may need to swap your inputs as even numbers will return 0 and odd ones 1
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- bhb
- Member
- 67 posts
- Joined: 4月 2017
- Offline
-
- Quick Links