Houdini PlusPlus

ouroboros1221

About Me

Expertise
Developer
Location
United States
Website

Connect

Recent Forum Posts

why houdini help doc keep disappearing? Feb. 4, 2019, 10:29 p.m.

I thought it was .416 issue, so I upgraded to .459, it seems the issue still persist.

When press F1 in houdini, after few click inside the help doc, the page simply crashes and needs to be reloaded.

PolyExtrude in VEX Feb. 4, 2019, 10:12 p.m.

v@extrude_distance = @N * chf("distance");
int @pts[];
int @ptsOnPrim[];



    @ptsOnPrim = primpoints(0,chi("selection"));

    foreach(int pt; @ptsOnPrim)
    {
       
       
            vector pos = point(0,"P",pt);
            i@point = addpoint(0, pos + v@extrude_distance);
            append(@pts,@point);
            
             
            
            
        
       
   
      
       //setpointattrib(0,"pts",@primnum,@pts,"set");
    }


int i = 0; int j =0;
addprim(0,"poly",@pts[i+2],@pts[i+1],@pts[i],@pts[i+3]);
addprim(0,"poly",@ptsOnPrim[j+1],@ptsOnPrim[j],@pts[i],@pts[i+1]);    
addprim(0,"poly",@ptsOnPrim[j],@pts[i],@pts[i+3],@ptsOnPrim[j+3]);
addprim(0,"poly",@ptsOnPrim[j+1],@pts[i+1],@pts[i+2],@ptsOnPrim[j+2]);
addprim(0,"poly",@ptsOnPrim[j+2],@pts[i+2],@pts[i+3],@ptsOnPrim[j+3]);

if(@primnum==chi("selection"))
{
    removeprim(0,@primnum,1);
}
    
    
    

        

only works with a grid and it has duplicated primitives, waiting for some more advanced user to improve the code

accessing array from different wrangle Feb. 4, 2019, 9:46 p.m.

no, it's been declared in the first wrangle, so I thought I won't need to. But your answered solved the issue xD