Question [Blender] How to get object orientation vectors (global frame) ?

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,271
Reaction score
3,244
Points
203
Location
Toulouse
I'm trying to get orientation vectors from a Blender object so that I can use them for animations in Orbiter.

The problem is : how to get "absolute" orientation values in Blender ? What the "Rotation" gizmo shows makes little sense. Is there a script to download or something ? :unsure:
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,873
Reaction score
2,868
Points
188
Website
github.com
Pick (or place) 2 points along the axis you want, and calculate the difference between them: a vector along that axis. Then you only need to normalize it.
 

Jordan

Active member
Joined
May 13, 2010
Messages
136
Reaction score
80
Points
43
Location
Germany
I'm trying to get orientation vectors from a Blender object so that I can use them for animations in Orbiter.

The problem is : how to get "absolute" orientation values in Blender ? What the "Rotation" gizmo shows makes little sense. Is there a script to download or something ? :unsure:

Do you mean the vector of the rotation axis?
If Yes then this Script may help you.

 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,271
Reaction score
3,244
Points
203
Location
Toulouse
Actually I created a custom transform orientation for my object, then created a camera and aligned it with that orientation... seems to work.
 

Jordan

Active member
Joined
May 13, 2010
Messages
136
Reaction score
80
Points
43
Location
Germany
I did it similar to this until I found this script (addon). I just need a face that points in the desired direction and have the values immediately. At the end i need to swap the y and z values
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,271
Reaction score
3,244
Points
203
Location
Toulouse
Swapping y & z is always necessary, that's because Orbiter is based on a left-handed coordinates system, and Blender on a right-handed one..
 
Top