Jump to content
Sign in to follow this  
n4gix

Windsheild wiper animation in FSX

Recommended Posts

>>I've seen the post by (who else?) Bill on creating windsheild>wiper animation for FS9 - at this link:>>http://www.aerodynamika.com/cgi-bin/yabb/YaBB.cgi?board=XML>>Can this be made to work for FSX also?Of course. It's merely a matter of "translating" the existing XML code to the new FSX schema, which mostly involves Capitalization of KeyWords... ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest fbnweoghnwd

Haven't got it working yet. I tried to update the code, but 3D Studio Max chokes on it. It gives a maxscript error saying: "Unknown property: 'Select Nodes' in undefined". It seems to me as that it doesn't recognize the Modeldef.xml as valid and refuses to load it. (It has no problem dealing with the Modeldef.xml if I remove the code.)So, here's my feeble attempt at updating the code - where did I go wrong? switch_wiper50(L:WIPER, enum) 50 * 100HandWiper SwitchLeftSingle+RightSingle (M:Event) 'LeftSingle' scmp 0 == if{ (L:WIPER, enum) -- 0 max (>L:WIPER, enum) } (M:Event) 'RightSingle' scmp 0 == if{ (L:WIPER, enum) ++ 3 min (>L:WIPER, enum) } } } Another thing: Once I get the code working, what needs to be done with it...I assume it gets applied to both the switch (using Attach Tool and Animation Mgr) and the animated parts of the wiper (using Animation Mgr) - correct?

Share this post


Link to post
Share on other sites
Guest fbnweoghnwd

I just caught that missing slash - so the last line now reads: The script no longer chokes Max, but the wipers don't work yet. I assigned the code to both the switch and the wiper itself. I get a hand cursor over the switch, but nothing else happens.

Share this post


Link to post
Share on other sites

This code is for the wiper switch only...For the switch, you will need to keyframe animate it from 0-50-100-150 as shown in the picture below:http://img19.imageshack.us/img19/3930/wiperswitchtd3.jpgYou also need to keyframe animate the wipers...For this particular code, you need three sets of wipers;1) OFF - no keyframes2) LOW - keyframe animated 0-50-100-150-200 frames, with one complete "stroke" animated between 0-50, 50-100, 100-150, 150-200. This will be FOUR "strokes" total.3) HIGH - keyframe animated 0-25-50-75-100-125-150-175-200, wich one complete "stroke" animated between each pair as above, beginning with 0-25, 25-50, etc. This will be EIGHT "strokes" total.You will need to write the XML code for the OFF, LOW, and HIGH sets of parts for both and . I'd suggest using "Ambient - nonrandom when applying the code to the part in the Animation Tool.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...