Graphics

 View Only
  • 1.  Scripting from a datalinq

    Posted 08-28-2019 08:41

    Hi.  I am trying to take text based off of a script and make it go somewhere else.  Scenerio is for football.  I am going to have an operator enter a digit inside of a dashboard panel.  That digit will pass its value over to Xpression.  There is then a check box that is passing a 0 or 1 depending on if it is checked or not.  So that gives me 4 text source that I am dealing with. 1) Final Output Number Text, 2) Entered Text in Dashboard, 3) 1 or 0 for the check box, & 4) there is a visual logic in the scene that is doing math to generate the other needed number.  Here is script that I am trying to accomplish, but I know that the script is wrong.

     

    dim NC, C, DL, O as xpTextObject

    Self.GetObjectByName("No Check", NC)
    self.GetObjectByName("Check", C)
    self.GetObjectByName("Drive Length", DL)
    self.GetObjectByName("Own 50 text", O)

    if O.Text = "0" then
    else if DL.Text = NC.Text
    else if DL.Text = C.Text

    end if

     

    Where as DL is the final text that should be going out.  If the box is not checked then O will have a zero and I need to pull NC text.  But if there is a 1 then I need to pull C text.

    Open to any ideas to this, does not have to follow this same path.



  • 2.  RE: Scripting from a datalinq

    Posted 08-30-2019 15:23

    I got this to work.  I was stupid.  I have the 0 or 1 coming into Xpression.  There was a visual logic cube to make this work of selecting one or the other.  So the input selector made that work.


    #XPression