View Full Version : how to click and drag model parts
this4dave2
September 10th, 2012, 07:14
:isadizzy: :banghead: :angryfir:
I have parts that are created in the FSDS model that I want to use the click and drag function to move them.
I have seen this done in some downloads.
Can some one please tell me how I can use the click and drag on parts that are created in the FSDS
model?
thank you
David Wooster
this4david2@q.com
tgibson
September 10th, 2012, 10:36
For GMAX you use part names listed in the makemdl.parts.xml file, or you add your own. I assume that FSDS either has this file or something similar to it.
Here is an example entry from the default file using mouse drag for the throttle lever:
<part>
<name>lever_throttle</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG THROTTLE LEVER POSITION:1, part) s0 0 >= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
<tooltip_id>TOOLTIPTEXT_THROTTLE_THROTTLE_PERCENT</tooltip_id>
<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
<callback_dragging>
<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
<units>percent</units>
<scale>163.84</scale>
<yscale>-163.84</yscale>
<minvalue>-16384</minvalue>
<maxvalue>16384</maxvalue>
<event_id>THROTTLE1_SET</event_id>
</callback_dragging>
</mouserect>
</part>
Hope this helps,
this4dave2
September 10th, 2012, 11:29
For GMAX you use part names listed in the makemdl.parts.xml file, or you add your own. I assume that FSDS either has this file or something similar to it.
Here is an example entry from the default file using mouse drag for the throttle lever:
<part>
<name>lever_throttle</name>
<animation>
<parameter>
<code>
(A:GENERAL ENG THROTTLE LEVER POSITION:1, part) s0 0 >= if{ l0 -50 * 50 + } els{ l0 (A:THROTTLE LOWER LIMIT, part) / 1 + 50 * }
</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<help_id>HELPID_GAUGE_THROTTLE_THROTTLE</help_id>
<tooltip_id>TOOLTIPTEXT_THROTTLE_THROTTLE_PERCENT</tooltip_id>
<mouse_flags>LeftSingle+LeftDrag+Wheel</mouse_flags>
<callback_dragging>
<variable>GENERAL ENG THROTTLE LEVER POSITION:1</variable>
<units>percent</units>
<scale>163.84</scale>
<yscale>-163.84</yscale>
<minvalue>-16384</minvalue>
<maxvalue>16384</maxvalue>
<event_id>THROTTLE1_SET</event_id>
</callback_dragging>
</mouserect>
</part>
Hope this helps,
Thanks
but I am am stupid does this xml file go in the Vc section of the panel.cfg or where.
David
Milton Shupe
September 10th, 2012, 17:46
You should have a file in your Plugins or like folder for FSDS by this name, or similar:
makemdl.parts.xml
You can edit this file to add animations to new parts, hide/unhide parts, 3D gauges etc.
vBulletin® v4.2.1, Copyright ©2000-2024, Jelsoft Enterprises Ltd.