Jump to content

Copy To Points/Normals


Recommended Posts

Hi this is pretty simple and I feel like I used to know the answer but it has escaped me. Here's what I'm doing- I made a box, then I created points at the center of each primitive using a wrangle, then I'm using Copy To Points with another box (so there's a "clone" in the center of each primitive of the original box) works great, HOWEVER, I can't figure out how to retain the original Normal when I create the new points to clone onto, so my clones aren't rotated properly. Please help me learn this once and for all. If there's a simple function I could call within the Wrangle that would be perfect. Thank you!

Link to comment
Share on other sites

2 minutes ago, anim said:

primitive wrangle on your original geo:


int pt = addpoint(0, @P);
setpointattrib(0, "N", pt, v@N);
removeprim(0, @primnum, 1);

 

Yes! Ah I was so close I just couldn't figure out how to reference the point I was creating. Thanks!

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...