Delete Curves or Controllers attached with Alembic Cache in Houdini
- Deepak KG
- Sep 18, 2020
- 1 min read
Happens every-time that we've IMPORTED a Character and that comes FREE with the Character RG curves or controller Curves every-time. And we don't like that. Since we use ABC's its always there and we don't want them there.
One way to remove them is to SELECT them one by one and then BLAST them. But that;s a VERY LONG process. Some might nt even be visible. So... How do we do that????
Here is how :
Import the ABC using "alembic" SOP.
Convert the alembic geometry.
Add an "assemble" SOP (For naming the Prim of-course)
Add a "measure" SOP. Settings BELOW....

Add an "attrib promote" SOP (To Promote the area to Connected Points. Or The Points wont be removed) Settings BELOW....

Add a "Primitive Wrangle" SOP. And add the Code below...
if(@area == 0){
removeprim(0, @primnum, 0);
}
Note: Now only the Primitives of the Curves and Controllers are Removed.
Add a "Point Wrangle" SOP. And add the Code below...
//parea is the Promoted "area" attribute from Primitives to Point Class
if(@parea == 0){
removepoint(0, @ptnum);
}
And done.
Comentarios