Hi I am currently working on some roofs and have a good way to make hipped roofs but want to make them into gabled roofs... I have got all the prims with 3 points that the peek point has only 3 neighbours as my selection of roof parts that need to stand vertically to make a gabled roof and have Id's for each peek that match the center point of the base I want to drag the top point over the base point. because the amount of points is different for the positions point number can't be used. that's the reason for using ID numbers
just need to work out how to transfer the co-ordinates from the xz of the base group with the same id to the peek group??
any help would be much appreciated been chasing my tail with it all day
assuming you have only 2 points per origid value (the peak and the base) run this in Point Wrangle with gable_peeks in Group parm
// run only over gable_peeks group specified in the Group parm ^intpts[] = findattribval( 0, "point", "origid", i@origid ); // get all points with the same origid as current pointremovevalue( pts, @ptnum ); // exclude current point (peak)if ( len( pts ) == 0 ) return; // return if there is no other pointvectorptP = point( 0, "P", pts[0] ); // get other point's (base) position v@P = set( ptP.x, v@P.y, ptP.z ); // profit