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

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
8,777
Reaction score
2,445
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
4,817
Reaction score
1,339
Points
138
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

Member
Joined
May 13, 2010
Messages
80
Reaction score
13
Points
23
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
8,777
Reaction score
2,445
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

Member
Joined
May 13, 2010
Messages
80
Reaction score
13
Points
23
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
8,777
Reaction score
2,445
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