kiryha Posted May 1 Share Posted May 1 I have a two-point curve and I need to shift the point's positions towards each other. I am calculating vectors from 2 points and adjusting positions along those vectors. If I do everything in the same wrangle it does not work, but once I move setting a new position to another wrangle it behaves as expected. What is happening? snippet_move_points.hiplc Quote Link to comment Share on other sites More sharing options...
Atom Posted May 1 Share Posted May 1 Can't you just set @P directly? The only time you need to use point is when running in detail mode. 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted May 1 Author Share Posted May 1 Yes, this is working... Ok, why it does not work if I set the position in the same wrangle where I define attributes? snippet_move_points_same_aw.hiplc Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted May 1 Share Posted May 1 3 hours ago, kiryha said: Yes, this is working... Ok, why it does not work if I set the position in the same wrangle where I define attributes? snippet_move_points_same_aw.hiplc 210.5 kB · 0 downloads Because setpointattrib() only sets attribute values on the output. So in your case, the normal attribute doesn't exist during code execution. So if you want to have everything in the same wrangle, set it to detail and apply your positions with setpointattrib() too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.