N is the direction you want to select edges from, and tolerance allows you to include only edges that are parallel to N (0) or perpendicular to N (1), or anything in between.
coz both dir and n are normalised, their dot product will never ever be greater than 1…so 1 - dot is much easier to digest to me. i'm just a hobbyist tho so don't take me too seriously.
coz both dir and n are normalised, their dot product will never ever be greater than 1...so 1 - dot is much easier to digest to me. i'm just a hobbyist tho so don't take me too seriously.
Hi everyone! found this useful!
there is a missing bracket after " if ( 1 - abs(dot ( dir,n )) <= tolerance )"
thought someone might have trouble running the wrangle.
Hello all Three years late but better than never. A student of mine was asking about selecting edges procedurally to polybevel. After failing to find a solution with the group SOP, I found animatrix's wrangle solution. At first, I too had the same weird 'shader error', but after some troubleshooting and clearing the extra brace added by vusta, I managed to get things to work and added some comments in this example file in my journey to understand the code. It is not fully procedural but it is a way forward instead of manual selection.
Hope it helps others jumping into this in future as I have done this Dec 2023.
p/s you have to click on the top right button in the point wrangle SOP to create the spare parameters after you paste the code.