hi, i have a swiming point geometry, doing connectivity SOP with attribute "class", then i use a Partition SOP with "group_$CLASS", after this i get different $CLASS of group refer to connectivity, OK! now I want to delete the “group” that have biggest or smallest primitive, how can i do that without manually selected ?
Thanks
CONNECTIVITY SOP question (autoselect)
5070 2 1- freesign
- Member
- 104 posts
- Joined: March 2008
- Offline
- pclaes
- Member
- 257 posts
- Joined: Nov. 2007
- Offline
I'm not 100% sure what it is exactly you want to do, but these are the kind of things you will need:
You will need a measure sop to measure the area of each primitive.
Then you will need an attributepromote, promoting the “area” to “area_max”, from primitive to detail. Do not delete the original attribute. You may need to promote area_max back down from detail to primitive.
Then in a delete sop you can set an expression that if $AREA == $AREA_MAX
the biggest piece will be deleted.
You can do the same promoting to the minimum.
Not sure what you are trying to do with the groups.
You will need a measure sop to measure the area of each primitive.
Then you will need an attributepromote, promoting the “area” to “area_max”, from primitive to detail. Do not delete the original attribute. You may need to promote area_max back down from detail to primitive.
Then in a delete sop you can set an expression that if $AREA == $AREA_MAX
the biggest piece will be deleted.
You can do the same promoting to the minimum.
Not sure what you are trying to do with the groups.
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
- freesign
- Member
- 104 posts
- Joined: March 2008
- Offline
thanks for reply, from your reply i found out a way to do it.
conectivity SOP (create primitive attribute $CLASS) –> attribcreate SOP (create detail attribute $MAX_CLASS) –> attributepromote SOP (primitive $CLASS -> detail $MAX_CLASS with promotion method = “mode”) –> delete SOP ( delete with expression $CLASS != $MAX_CLASS)
then the model keep the lagest piece
thanks again
conectivity SOP (create primitive attribute $CLASS) –> attribcreate SOP (create detail attribute $MAX_CLASS) –> attributepromote SOP (primitive $CLASS -> detail $MAX_CLASS with promotion method = “mode”) –> delete SOP ( delete with expression $CLASS != $MAX_CLASS)
then the model keep the lagest piece
thanks again
-
- Quick Links