Help on Group by Range Node

   335   3   1
User Avatar
Member
2 posts
Joined: Dec. 2022
Offline
Can anyone help me on this situation? Please
All information is in the image.

Attachments:
Group by Range.jpg (195.5 KB)

User Avatar
Member
57 posts
Joined: April 2013
Offline
The range is working with numeric values, it's not a wrapping effect which is what I think
you were expecting, by shifting 1 row by 1 for example and whatever goes off one side appears
on the other.

This is not the case here.

Selecting 1 of 11 will evaluate to 1, 1+11=12, 12+11=23, 23+11=34 etc
Offset by 1 and you get the 2, 13, 24, 35 .... 90+11=101 ,not a value in the bottom row.

For your third image offset by 2.....80+11 = 91
User Avatar
Member
8833 posts
Joined: July 2007
Offline
you can try something like this in Group Expression SOP

( @primnum - chi("offset") ) % 10 == floor( @primnum / 10 )
Edited by tamte - Dec. 9, 2024 21:44:22
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
2 posts
Joined: Dec. 2022
Offline
Thank you @EZiniT for the explanation.

Very thank you @tamte for the expression. It works perfectly.
  • Quick Links