How do I create a moving head animation?

Questions, comments, concerns, & fixes
Post Reply
User avatar
Halliverd 1 1
Posts: 21
Joined: Thu Jul 26, 2018 12:31 pm
Favorite Aircraft: F/A-18E Super Hornet
OS: Windows 7
Has thanked: 12 times
Been thanked: 3 times

How do I create a moving head animation?

Post by Halliverd 1 1 » Sun Aug 04, 2019 5:50 am

Hey guys, just wondering, how do I create the moving head animation on the pilot in ys flight

I have seen it in some planes before so I know its possible.

Posts: 22
Joined: Wed Nov 14, 2018 6:44 am
Favorite Aircraft: 747
OS: Mac
Has thanked: 2 times
Been thanked: 2 times

Re: How do I create a moving head animation?

Post by RaptorRex35279 » Sun Aug 04, 2019 8:32 am

hmmm, sometimes on certain aircraft like 737s, you can use arrow keys to move the heads, though they would have to be detailed aircraft. I can't remember the pack name, but I had an air europa livery and an ANA livery where this worked.

User avatar
Posts: 1012
Joined: Wed Mar 28, 2012 8:49 pm
Favorite Aircraft: The Boeing 757
Location: Providence, Rhode Island
OS: Windows 10/Gentoo
Has thanked: 272 times
Been thanked: 205 times

Re: How do I create a moving head animation?

Post by Barr » Sun Aug 04, 2019 2:59 pm

If you already know how to use blender and make animations then you could either set the head with a rudder animation, gun turret or maybe even set it so it moves with aileron and elevator.

If you have never worked in blender it's time to get some snacks and watch/read all of decaffs animation tutorials ... -tutorials
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.

User avatar
Posts: 3755
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
Has thanked: 780 times
Been thanked: 1661 times

Re: How do I create a moving head animation?

Post by decaff_42 » Sun Aug 04, 2019 5:00 pm

In terms of how the actual animation is done, any flight-control surface animation can be used in order to get the left/right/straight ahead motion. In my F-35s, for example, I use the rudder for left right, and the elevator for head tilted up or down.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes:

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database

User avatar
Posts: 4373
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 860 times
Been thanked: 1275 times

Re: How do I create a moving head animation?

Post by Flake » Sat Aug 17, 2019 1:08 pm

Everyone has hinted at it, but my 2c:

You need to set a child/parent combo.

Have an empty srf (null.srf) as assigned to elevator. Have a child srf (Head.srf) assigned as a rudder within that.

Now the elevator CLA will move the head up and down, but the rudder will move it left and right. Any combination of inputs can make it look in any direction. So elevator up, and rudder left will make the head look up and to the left.

Finally: Reverse engineer. If you've seen another model do something, have a look at how it works in the appropriate tools (Blender). You'll be amazed at how much you can learn this way. I reverse engineered YSFlight Netcode for years and the results have been telling. I built off the work of those before me (VincentWeb/Eric). You don't have to reinvent the wheel to understand how it works and make a better wheel - that's true for all facets of life.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

Posts: 32
Joined: Tue May 15, 2018 10:39 am
Favorite Aircraft: Mirage 2000
Location: Maldives/Sri Lanka
OS: Linux Mint
Has thanked: 1 time
Been thanked: 2 times

Re: How do I create a moving head animation?

Post by YSG2000 » Fri Jun 17, 2022 4:36 pm

After some work I managed to get this working properly, so I am documenting the steps in case anyone wants to know. Movement from side to side on aileron activation only for the moment.

The key is to create the 3D the pilot model and make sure the helmet is centred around the origin of the 3D editor you are using, import into Blender and move it to correct position in Blender itself.

Open in DNMVIEWER, Highlight the helmet object, click and drag to make it a child object, link to aileron and add STAS.

See attached images.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests