Go Back   AC3D Forums > Meeting places > AC3D and X-Plane
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 13th August 2009, 01:31 PM   #1
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Animations...how to keep separate?

I've finally started working with the X-Plane plug in to work with animations.

I've created a few for one aircraft, but one thing is puzzling.

All the animations I've created "play" together, even though they are separate Animation Groups in the heirarchy. This is somewhat troublesome, because some are 3-value animations (like the rudder, with a center at 0 value and 1 and 3 at the extreme angles of the rudder deployment) and some are simpler, 2-value animations.

How do you "separate" animation groups, so that when you select any animation and use the time slider, only THAT animation will move? And, conversely, if you DO want to tie multiple animation groups together, how do you 'manage' and 'organize' them?
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Old 16th August 2009, 02:31 PM   #2
captainpeter
Senior Member
Professional user
 
captainpeter's Avatar
 
Join Date: May 2004
Location: Vienna / Austria
Posts: 207
Default Re: Animations...how to keep separate?

You need to assign different datarefs to animation groups for individual movement.
I don't really understand what you mean with 2- or 3-value animations.

For a simple rudder assembly you need one dataref which outputs a floating point value which gives the deflection in degrees (+/-).

For more complex animations like a hstab which moves with trim and an attached elevator which moves with pitch input you simply put the elevator assembly (the complete anim-group) into the hstab anim-group. You can create really complex mechanical assemblies by nesting animation groups.

Make sure you got the latest datarefs.txt file in the AC3D plugins folder btw....

cheers
peter
Attached Thumbnails
Click image for larger version

Name:	73stab.jpg
Views:	335
Size:	551.6 KB
ID:	1627  

captainpeter is offline   Reply With Quote
Old 16th August 2009, 03:41 PM   #3
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: Animations...how to keep separate?

Thanks for the help!!

For one thing, I know I don't have a dataref.txt file... didn't think I'd really need it since I'm not exporting to X-file. Maybe if I get one just for AC3D to refer to, that particular function will work (right now, if I even select the dropdown for datarefs I get an error dialog). Then, this might solve the problem of AC3D only "seeing" one animation for all the animation groups.

As for 3-part vs. 2-part animations, there is a distinction in the flight sim I'm working with. A rudder, for example, has three animation detentes: a center (no input) and the full left and right deflections. Another animation, say, a flap, might just have two (full up and full down), or a canopy might only have two (open and closed).
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Old 16th August 2009, 05:52 PM   #4
captainpeter
Senior Member
Professional user
 
captainpeter's Avatar
 
Join Date: May 2004
Location: Vienna / Austria
Posts: 207
Default Re: Animations...how to keep separate?

You will need Commands.txt & DataRefs.txt from your X-Plane plugins folder (get the demo from x-plane.com if you need the most recent version of those files).

The plugin should be here:
http://www.xsquawkbox.net/scenery/tools.php

You specify the animation ranges from the x-plane properties (select the rotation or translation object first). simply choose a dataref, define which dataref range corresponds to which object translation and you get the slider to control it.

peter
captainpeter is offline   Reply With Quote
Old 17th August 2009, 01:29 PM   #5
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: Animations...how to keep separate?

Again, thanks!

I got the two files from the demo (took long enough, though!) and now have values to put in the dataref fields. That "separated" the animations.
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 12:50 PM.


AC3D Forum
(C) Inivis Limited 2020