Jump to content

Set point position in the same wrangle


kiryha

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...