Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Can anyone give me a hand with this?

Can anyone give me a hand with this?

Scheduled Pinned Locked Moved XML / XSL
helpdatabasexmltutorialquestion
7 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ajweber
    wrote on last edited by
    #1

    Hi, I'm new to XML coding and I've got a problem I need help with. I'm developing a model in .gmax for FSX and I'm attempting to trigger animated objects using a switch that determines which animation to run. I know the following example isn't correct, I use this illustrate what I'm trying to do: <PartInfo> <Name>xyz_switch</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (L:xyz_01, bool) 100 * (L:xyz_02, bool) 100 * (L:xyz_03, bool) 100 * (L:xyz_04, bool) 100 * </Code> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <CallbackCode> (L:xyz_01, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } (L:xyz_02, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } <if xyz_01 is has already been activated, then run xyz_02> (L:xyz_03, bool) 0 > if{ (L:xyz_02, bool) 0 } els{ 1 }<if xyz_01 and xyz_02 have already been activated, then run xyz_03> (L:xyz_04, bool) 0 > if{ (L:xyz_03, bool) 0 } els{ 1 }<if xyz_01, 02 and 03 have been activated, then run xyz_04> (L:xyz_05, bool) 0 > if{ (L:xyz_04, bool) 0 } els{ 1 }<if xyz_01,02,03 and 04 have been activated, then run xyz_05> </CallbackCode> </MouseRect> </PartInfo> Up to now, I've been trudging through and figuring out the code I've needed for new parts I'm creating, but this one's got me stumped!! Can anyone give me a hand with this? Thanks!! AJ

    N 1 Reply Last reply
    0
    • A ajweber

      Hi, I'm new to XML coding and I've got a problem I need help with. I'm developing a model in .gmax for FSX and I'm attempting to trigger animated objects using a switch that determines which animation to run. I know the following example isn't correct, I use this illustrate what I'm trying to do: <PartInfo> <Name>xyz_switch</Name> <AnimLength>100</AnimLength> <Animation> <Parameter> <Code> (L:xyz_01, bool) 100 * (L:xyz_02, bool) 100 * (L:xyz_03, bool) 100 * (L:xyz_04, bool) 100 * </Code> </Parameter> </Animation> <MouseRect> <Cursor>Hand</Cursor> <CallbackCode> (L:xyz_01, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } (L:xyz_02, bool) 0 > if{ (L:xyz_01, bool) 0 } els{ 1 } <if xyz_01 is has already been activated, then run xyz_02> (L:xyz_03, bool) 0 > if{ (L:xyz_02, bool) 0 } els{ 1 }<if xyz_01 and xyz_02 have already been activated, then run xyz_03> (L:xyz_04, bool) 0 > if{ (L:xyz_03, bool) 0 } els{ 1 }<if xyz_01, 02 and 03 have been activated, then run xyz_04> (L:xyz_05, bool) 0 > if{ (L:xyz_04, bool) 0 } els{ 1 }<if xyz_01,02,03 and 04 have been activated, then run xyz_05> </CallbackCode> </MouseRect> </PartInfo> Up to now, I've been trudging through and figuring out the code I've needed for new parts I'm creating, but this one's got me stumped!! Can anyone give me a hand with this? Thanks!! AJ

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      So what are you having difficulties with?


      I know the language. I've read a book. - _Madmatt

      A 1 Reply Last reply
      0
      • N Not Active

        So what are you having difficulties with?


        I know the language. I've read a book. - _Madmatt

        A Offline
        A Offline
        ajweber
        wrote on last edited by
        #3

        Hi, I need an expression that will cause the program to choose between 5 variables depending on which on is already active. Example: There are five motors. I press a button to start motor #1. If motor #1 isn't already running, then it starts. If it is already running then the #2 motor starts. If #1 and #2 motors are already running, then #3 when will start, and so on. That's all I'm trying to do really. Thanks! AJ

        N 1 Reply Last reply
        0
        • A ajweber

          Hi, I need an expression that will cause the program to choose between 5 variables depending on which on is already active. Example: There are five motors. I press a button to start motor #1. If motor #1 isn't already running, then it starts. If it is already running then the #2 motor starts. If #1 and #2 motors are already running, then #3 when will start, and so on. That's all I'm trying to do really. Thanks! AJ

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I don't understand how this relates to XML


          I know the language. I've read a book. - _Madmatt

          A 1 Reply Last reply
          0
          • N Not Active

            I don't understand how this relates to XML


            I know the language. I've read a book. - _Madmatt

            A Offline
            A Offline
            ajweber
            wrote on last edited by
            #5

            The program I am developing for uses XML to compile and animate objects that are placed within a game. The expression I need is real simple, I just don't know how to "word" it in code.

            N 1 Reply Last reply
            0
            • A ajweber

              The program I am developing for uses XML to compile and animate objects that are placed within a game. The expression I need is real simple, I just don't know how to "word" it in code.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              You have done nothing to clarify your question. I still don't see how this is related to XML at all or what exactly you are trying to accomplish. Don't assume everyone is standing over your shoulder looking at the code you are working with. Explain what you are doing, what you have tried, what issues you are facing and what you need help with.


              I know the language. I've read a book. - _Madmatt

              A 1 Reply Last reply
              0
              • N Not Active

                You have done nothing to clarify your question. I still don't see how this is related to XML at all or what exactly you are trying to accomplish. Don't assume everyone is standing over your shoulder looking at the code you are working with. Explain what you are doing, what you have tried, what issues you are facing and what you need help with.


                I know the language. I've read a book. - _Madmatt

                A Offline
                A Offline
                ajweber
                wrote on last edited by
                #7

                I need to write code for something other than what you guys use xml for, it's for a 3D modeling program. Apparently I posted my question on the wrong forum. Sorry guys, you have a nice day!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups