Jump to content
Sign in to follow this  
Atom

Align Copy To Primitives Normals Not Points?

Recommended Posts

Hi All,

I thought I knew how to do this but when I tried I got stuck.

I want to copy cones to the center of every face/primitive on a hemisphere. I thought Copy could do this natively but I guess not. I also want to be able to invert the Normals so I can FLIP some of the cones to face in and some out. I tried using @N *=-1; inside a Attribute Wrangle but nothing happened, the copies seem immune to the normals.

How do I align to face normals?

Screen Shot 2016-05-11 at 12.08.23 PM.png

ap_align_to_primitives.hipnc

Share this post


Link to post
Share on other sites

set prim normals

divide->compute dual (this puts a point where the prims were, and a prim where the points were, its like the inverse shape)

@N *= -1 for the cones you want to flip

copy sop

done. :)

 

me_align_to_primitives.hipnc

Share this post


Link to post
Share on other sites

Thanks Matt!

I never really knew what Compute Dual did.

Share this post


Link to post
Share on other sites

This is nice!

Matt it seems like you have a magic crate with a solution for all problems :)

Share this post


Link to post
Share on other sites

Ha, more like I have an amazing bunch of co-workers who collectively know everything about everything, but they rarely post here, so I get to take all the credit. ;)

 

 

Share this post


Link to post
Share on other sites
4 hours ago, mestela said:

Ha, more like I have an amazing bunch of co-workers who collectively know everything about everything, but they rarely post here, so I get to take all the credit. ;)

 

 

I KNEW it!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×