Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
VC knobs and buttons.. (Read 664 times)
Dec 17th, 2009 at 9:26am

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
I'm working on the Bonanza VC now.. I'm trying to make it as 3D and interactive as possible.

I'm stuck on radio knobs..  The attach point menu for modeled knobs includes just about everything I can see needing.. EXCEPT for Nav-2 frequency knobs.

There are mouse-rects for Comm 1 and 2.. but there is only one set of Mouse-rects for Nav tuning knobs (they operate Nav1)..

Does anyone know the 'user defined' script for Nav2 frequency knobs ?

...
...

 
IP Logged
 
Reply #1 - Dec 18th, 2009 at 4:10pm

Fr. Bill   Offline
Colonel
I used to have a life;
now I have GMax!
Hammond, IN

Gender: male
Posts: 962
*****
 
Brett, the XML script in modeldef.xml is easy to copy/paste/modify to suit your needs.

1. copy/paste/edit the <Animation...guid=.../> entries for the existing com and nav scripts, and create a new GUID entry to make them unique.

2. copy/paste/edit the actual <PartInfo> entries for com and nav scripts, so the <Name> entries match the <Animation...etc> entries created in step 1.

3. select/use the new entries in Max/GMax as needed.

Here is an example. Note that every instance of "nav" has been edited to be "nav2". I used a random GUID generator to create unique numbers for these two definitions:

Code:
<Animation name="knob_nav2_KHz" guid="41719d13-ea61-47c6-aa32-e3da39e86a3d" length="360" type="Sim" typeParam2="knob_nav2_KHz" typeParam="AutoPlay" />
<Animation name="knob_nav2_MHz" guid="1f48569f-9eae-4b43-a7f2-debba74e1a37" length="360" type="Sim" typeParam2="knob_nav2_MHz" typeParam="AutoPlay" /> 



Code:
<PartInfo>
  <Name>knob_nav2_KHz</Name>
  <AnimLength>360</AnimLength>
  <Animation>
    <Parameter>
      <Code>(A:NAV2 ACTIVE FREQUENCY, KHz) 100 / 10 % 36 * dnor</Code>
    </Parameter>
  </Animation>
  <MouseRect>
    <Cursor>Hand</Cursor>
    <TooltipID>TOOLTIPTEXT_NAV2_FREQ</TooltipID>
    <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
    <CallbackJumpDragging>
      <XMovement>
        <Delta>5</Delta>
        <EventIdInc>NAV2_RADIO_FRACT_INC</EventIdInc>
        <EventIdDec>NAV2_RADIO_FRACT_DEC</EventIdDec>
      </XMovement>
    </CallbackJumpDragging>
  </MouseRect>
</PartInfo>

<PartInfo>
  <Name>knob_nav2_MHz</Name>
  <AnimLength>360</AnimLength>
  <Animation>
    <Parameter>
      <Code>(A:NAV2 ACTIVE FREQUENCY, MHz) 10 % 10 * dnor</Code>
    </Parameter>
  </Animation>
  <MouseRect>
    <Cursor>Hand</Cursor>
    <TooltipID>TOOLTIPTEXT_NAV2_FREQ</TooltipID>
    <MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
    <CallbackJumpDragging>
      <XMovement>
        <Delta>5</Delta>
        <EventIdInc>NAV2_RADIO_WHOLE_INC</EventIdInc>
        <EventIdDec>NAV2_RADIO_WHOLE_DEC</EventIdDec>
      </XMovement>
    </CallbackJumpDragging>
  </MouseRect>
</PartInfo>
 

 

Bill
... Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
...
IP Logged
 
Reply #2 - Dec 18th, 2009 at 6:25pm

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
THAN YOU,  Bill !

Not only did that work perfectly.. it has opened my knowledge base dramatically  Smiley

Of course, the more that you learn to control in the modeling process.. the more you WANT to add Cheesy

This model might never get finished.. Grin
 
IP Logged
 
Reply #3 - Dec 21st, 2009 at 1:24am

Fr. Bill   Offline
Colonel
I used to have a life;
now I have GMax!
Hammond, IN

Gender: male
Posts: 962
*****
 
You are most welcome.  Share the knowledge!  Wink
 

Bill
... Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
...
IP Logged
 
Reply #4 - Dec 27th, 2009 at 4:47pm

Dickert   Offline
Colonel
Does it ever fly fast
enough?
Ontario Canada

Gender: male
Posts: 170
*****
 
Hey Brent
What program is that screen shot from?  I have not started to make instruments and switches yet but I need to.  How did you get started and can I do it with out knowing any "C"?

Harold
 

...
IP Logged
 
Reply #5 - Dec 27th, 2009 at 5:01pm

Brett_Henderson   Offline
Colonel
EVERY OUTER MARKER SHOULD
BE AN NDB

Gender: male
Posts: 3593
*****
 
Dickert wrote on Dec 27th, 2009 at 4:47pm:
Hey Brent
What program is that screen shot from?  I have not started to make instruments and switches yet but I need to.  How did you get started and can I do it with out knowing any "C"?

Harold



That's the Gmax, FSTools, Attach-Point menu.. It's where you do things like control part visibility (wheels and props); mouse rectangles (for operating VC knobs, levers, switches, buttons); and where you attach things like effects (for lighting, and smoke)..

No programming required.. other than modifying existing XML code, as above.
 
IP Logged
 
Reply #6 - Feb 3rd, 2010 at 11:40am

Dickert   Offline
Colonel
Does it ever fly fast
enough?
Ontario Canada

Gender: male
Posts: 170
*****
 
Ok, I am about to go dig though the help file.  Is there a tutorial out there somewhere?  I already did the switches listed in the interior animated parts list in the SDK but there is a lot missing, like the radio and auto pilot controls.
Also, my aircraft is a single engine machine but I want to run dual generators.  So far the second switch is dead.  And I'd like to design an AIR DRIVEN GENORATOR that pops out into the airflow if the engine fails.  I can make the GMAX parts no problem but to get the sim to know what it is - well?????????

Harold
 

...
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print