[ANSWERED] Text parsor actor too intelligent for me


  • I am trying to extract values from the following text:

    status.MoveStatus=Idle

    status.PTS=0

    status.Postion[0]=259.300000

    status.Postion[1]=-10.500000

    status.Postion[2]=0.8000000

    status.PresetID=0

    status.Sequence=0

    status.UTC=0

    status.ZoomStatus=Idle

    I manage to extract one value per actor  with this: "status.Postion[0]="Position_0:float=.#   (or "status.Postion[1]="Position_1:float=.#  or "status.Postion[?]="Zoom:float=.# ) and the eom char value 13

    But i I try: "status.Postion[0]="Position_0:float=.# "status.Postion[1]="Position_1:float=.# "status.Postion[2]="zoom:float=.#

    or : 

    "status.Postion[0]="Position_0:float=.#
    "status.Postion[1]="Position_1:float=.#
    "status.Postion[2]="zoom:float=.#

    I get this but no value in the output.

    Where is the error I make?

    Thank you for help

    Jean-François 


  • @jfg said:

    I get this but no value in the output.

    Hmmm... just tried it and it worked fine for me. See the attached patch. Are you doing something different? Do you have the 'eom char' set to 0?

    Best Wishes,
    Mark

    parsing-data.izz


  • @mark

    the difference between my and your patch is that you send from the trigger Text actor only the 3 lines:

    status.Postion[0]=259.300000

    status.Postion[1]=-10.500000

    status.Postion[2]=0.8000000

    and I send all the text as I get it from the camera:

    status.MoveStatus=Idle

    status.PTS=0

    status.Postion[0]=300.300000

    status.Postion[1]=220.500000

    status.Postion[2]=1.000000

    status.PresetID=0

    status.Sequence=0

    status.UTC=0

    status.ZoomStatus=Idle

    EDIT: if I delete the two first line it works well.

    best

    Jean-François 


  • @mark

    I found a solution. to get only lines 3 to 5 I have to add for the previous lines that I want to ignore eol for each line:

    eol
    eol
    "status.Postion[0]="Position_0:float=.# 
    "status.Postion[1]="Position_1:float=.# 
    "status.Postion[2]="zoom:float=.#

    Thanks

    Jean-François 

    PS: Can I and how set this post to answered?

  • Tech Staff

    @jfg said:

    PS: Can I and how set this post to answered?

     We just edit the title of the post :)

    All done <3

    - Woland