Hi there,
Is there a way to just group connected primitives with the boundingbox methode? So only those primitives will be selected whos connected members are all in the boundning box.
how to group just connected pieces?
11889 10 2- mickyblue
- Member
- 217 posts
- Joined: Sept. 2009
- Offline
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
HI
I'd give VOP a try with neighbours VOP and “add to group VOP” maybe .. then convert point group into primitive group in SOP.
I'd give VOP a try with neighbours VOP and “add to group VOP” maybe .. then convert point group into primitive group in SOP.
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
- mrCatfish
- Member
- 731 posts
- Joined: Dec. 2006
- Offline
- mickyblue
- Member
- 217 posts
- Joined: Sept. 2009
- Offline
- mrCatfish
- Member
- 731 posts
- Joined: Dec. 2006
- Offline
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
nevermind my first post too .. for some reason I thought it was something I've done already in VOP! .. I didn't find a solution by following that route yet but I'm still trying
glad mrCatFish came out with a working one!
glad mrCatFish came out with a working one!
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
- mickyblue
- Member
- 217 posts
- Joined: Sept. 2009
- Offline
- tamte
- Member
- 8597 posts
- Joined: July 2007
- Online
- mickyblue
- Member
- 217 posts
- Joined: Sept. 2009
- Offline
- tamte
- Member
- 8597 posts
- Joined: July 2007
- Online
primgroupmask() will list all primitive groups on the geometry which match the given mask, in this case “piece_*”
and because ../Whole_Pieces_inside_selection node contains only groups that are inside the bounding objects you can just get them all
!* is there to by default select nothing, because if no whole piece is inside the bounding object then by default primgroupmask() will result in empty string and that would select all primitives so !* in front will prevent this
at first I did this without intermediate attribute “__group” directly in combine tab of group sop and it worked correctly, but as soon as i animated bounding object, it was not updating, even though all was time dependent, but it works this way
and because ../Whole_Pieces_inside_selection node contains only groups that are inside the bounding objects you can just get them all
!* is there to by default select nothing, because if no whole piece is inside the bounding object then by default primgroupmask() will result in empty string and that would select all primitives so !* in front will prevent this
at first I did this without intermediate attribute “__group” directly in combine tab of group sop and it worked correctly, but as soon as i animated bounding object, it was not updating, even though all was time dependent, but it works this way
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- mickyblue
- Member
- 217 posts
- Joined: Sept. 2009
- Offline
-
- Quick Links