• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

how to click and drag model parts

this4dave2

Members +
: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
 
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:

Code:
<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,
 
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:

Code:
<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
 
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.
 
Back
Top