Objectmatrix to Loc


(Schlops) #1

GabbagabbaHey!

Is there a way to get the Loc[XYZ]-values of an object out of its object-matrix?


(eeshlo) #2

This is answered in the ‘camera loc in python’ thread.
But basically:


mtx = Blender.Object.Get(objectname).matrix
loc = list(mtx[3][:3])


(Schlops) #3

D’Oh!!

I read that thread before, and I know it is very easy to get the Loc-values. But I want the Rot-values. Sorry 'bout that. It was very late last night :-?

/me bangs his head against the wall!


(eeshlo) #4

I have answered that as well:
http://www.elysiun.com/board/viewtopic.php?t=184


(Schlops) #5

Thanks a lot!!!