Hi,
I noticed something weird while coding a little script. I proves that I misunderstand something basic. It is extremely annoying. :o) …
A is an object. I select A. Then “Cursor to origin”.
Then I check A’s location.
Then I check Cursor’s location (View < 3D cursor )
These 2 locations are different.
Why ?! >:O
Thank you !
Hi,
maybe object is child of another object ?
Thanks Hadriscus !
Yes, off course ! … I’m a fool …
Well, now, I just have to get the script to get the global coordinates of this child with script.
loc=mo.matrix.translation_part()
… does not work (deprecated ?? ) Returns “object has no attribute ‘matrix’”
It works for me :
WorldLocation= myObject.matrix_world.translation