Jump to content

Setting pivot to the center of a face


Recommended Posts

I am trying to set the pivot/center of a geometry to the center of a specific face, but I'm not sure what expression I need to get the location of a face, (or even how to copy the hard location of a vertex or center of a face).

I attached an image to show what I am looking for (i.e. I am trying to set the origin to the purple box, and follow the face when I change the extrude distance)

Thanks!

2019-07-02 11_08_23-Window.png

Link to comment
Share on other sites

I seem to have figured it out, the expression I needed was

prim("../polyextrude5/",96,"P",2)

, 96 being the number of the face I wanted.

Also it seems like you can't actually change the global "pivot" at any point, it is just 0,0,0 and you just need to move the pivot you want to that position.

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