Expression in Group SOP, strange results
5565 9 1- Fr3drik
- Member
- 36 posts
- Joined: Oct. 2007
- Offline
Hi,
I have some trouble with the Group SOP behaving strangely.
I'm trying to group some primitives using the expression $TY >= $CEY && $TZ == $ZMAX on points, and then convert type to primitives.
It works as expected most of the time, but when I change the number of rows/cols in the initial grid to certain values, odd things happen - not all prims that should be are selected. Examples of values that generate this are (rows/cols) 2/8, 3/8, 4/6 (+ many more).
Would really appreciate some help, I just can't figure it out…
Thanks,
Fredrik
Ps. Using 10.0.374
I have some trouble with the Group SOP behaving strangely.
I'm trying to group some primitives using the expression $TY >= $CEY && $TZ == $ZMAX on points, and then convert type to primitives.
It works as expected most of the time, but when I change the number of rows/cols in the initial grid to certain values, odd things happen - not all prims that should be are selected. Examples of values that generate this are (rows/cols) 2/8, 3/8, 4/6 (+ many more).
Would really appreciate some help, I just can't figure it out…
Thanks,
Fredrik
Ps. Using 10.0.374
- aiworks
- Member
- 130 posts
- Joined: April 2009
- Offline
- Fr3drik
- Member
- 36 posts
- Joined: Oct. 2007
- Offline
No, I just want to group the top row (as in my posted ‘img 5,6.png’).
That's why I group the points first and then convert the selection to prims (with 'Only include primitives with all points in the group). Please let me know if there is a better way of achieving this.
You see what I mean if you open the scene and try some of the row/col combinations I mentioned below; suddenly not all prims are selected.
Thanks,
Fredrik
That's why I group the points first and then convert the selection to prims (with 'Only include primitives with all points in the group). Please let me know if there is a better way of achieving this.
You see what I mean if you open the scene and try some of the row/col combinations I mentioned below; suddenly not all prims are selected.
Thanks,
Fredrik
- aiworks
- Member
- 130 posts
- Joined: April 2009
- Offline
- Fr3drik
- Member
- 36 posts
- Joined: Oct. 2007
- Offline
- aiworks
- Member
- 130 posts
- Joined: April 2009
- Offline
- Fr3drik
- Member
- 36 posts
- Joined: Oct. 2007
- Offline
Ran in to a new problem: similar thing happens when I want to group the “center points” with $TY == $CEY (see img, not all points included with certain row/col combinations in Grid SOP).
I fixed it by using $TY >= $CEY-.0001 && $TY <= $CEY+.0001, but it is still annoying.
Is this a bug or am I missing something really obvious?
/Fredrik
I fixed it by using $TY >= $CEY-.0001 && $TY <= $CEY+.0001, but it is still annoying.
Is this a bug or am I missing something really obvious?
/Fredrik
- aiworks
- Member
- 130 posts
- Joined: April 2009
- Offline
- Fr3drik
- Member
- 36 posts
- Joined: Oct. 2007
- Offline
- aiworks
- Member
- 130 posts
- Joined: April 2009
- Offline
-
- Quick Links