so I have the following set up. I have a List of constraints set up in OpInput1 (represented as “point” in Houdini). The actual geometry is going into OpInput2 and is changed as demonstrated in the code below.
// 1. get the Points from Input2 vector p1 = point(1,"P",i@p1); vector p2 = point(1,"P",i@p2); float d = @distance; // 2. calculate deltaP1 and deltaP2 // 3. apply the changes and write them back to Input2 p1 = p1+deltaP1; p2 = p2+deltaP2; setpointattrib(1,"P",i@p1,p1); setpointattrib(1,"P",i@p2,p2);
So now I would like to get the corrected Points from Input2 as Output of the Attribute Wrangle. As a bonus question: How does vex handle the (possibly) concurrent update into Input2?
Thanks in advance.
Knork