Jump to content

Aligninig Primitives To Other Prmitive Normals


lisux

Recommended Posts

You can align one object with another by using the copy SOP with rotate to Template Normal enabled. If you want to align to a particular location and normal taken from another object you can use point expressions placed on an Add SOP and Point SOP. I'll see if I can upload a hip to demonstrate.

align.hip

Link to comment
Share on other sites

Forgot to add that you can use the prim expression to align to primitive normals in the same way that you align to point normals. Use something like this in the three normals parameters of your point SOP that adds the normal to your location point:

prim("../xform1",186,"N",0)

prim("../xform1",186,"N",1)

prim("../xform1",186,"N",2)

Link to comment
Share on other sites

Forgot to add that you can use the prim expression to align to primitive normals in the same way that you align to point normals.  Use something like this in the three normals parameters of your point SOP that adds the normal to your location point:

    prim("../xform1",186,"N",0)

    prim("../xform1",186,"N",1)

    prim("../xform1",186,"N",2)

24510[/snapback]

Thanks grasshopper.

I am looking for a more interactive solution, for example align a handler to a primitive and then move around aligned to it.

Maybe your solution could be put into an HDA with the needed handlers.

Link to comment
Share on other sites

If you go to Sidefx exchange there are at least a couple of assets that do this already.

24531[/snapback]

Thanks Simon

I have just tested you Orient SOP, and is really nice.

I have just added a comment about how to select the prim for A and B from the viewport, putting the numbers into the parameters fields is not so intuitive for a modeler.

But anyway thanks, it do the job!

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