0
$\begingroup$

The answer to the above question seems to involve moving the scene cursor to the selected face, performing some matrix magic (math) and at one point using bpy.ops.object.origin_set without ruining said matrix magic.

Any chance that anyone has done this before, or know the actual math required for it?

NOTE: My objects are not at the origin and may be rotated already!

$\endgroup$
5
  • 1
  • $\begingroup$ Thanks, yes, I'm also looking at this one: blender.stackexchange.com/a/209798/38603 $\endgroup$ Commented Mar 8, 2021 at 21:39
  • $\begingroup$ Would you say it's a Possible duplicate? $\endgroup$ Commented Mar 8, 2021 at 21:46
  • $\begingroup$ If I can get some of the answers to work, but so far, I can't get the math to work out. For example, the link I pasted only works if the object is at the origin, which mine are not (so I added an edit to clarify that in the question above). $\endgroup$ Commented Mar 8, 2021 at 21:58
  • $\begingroup$ NOTE. re bumps and in regard to comments here it is a simple process to move an object to origin by multiplying by its matrix world inverted. Apply any code that works at origin while object is there, then transform back. Still think this has been well covered AND IMO is if not a dupe, a combination of two dupes. Please consider editing the specifics of what you are having difficulty with into question. $\endgroup$ Commented Mar 14, 2021 at 16:45

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.